As Rich points out, I needed to also populate the Header record. My code was only populating the Detail record. Once I filled the POHeader table also, it worked as I expected. Whew!! I was thinking I might not get this done today… Thank you to everyone who took time to help me!!