Skip to Content
0
Former Member
Nov 29, 2011 at 01:35 PM

BAPI_PO_CREATE1 Works on the First Loop

155 Views

Dear all,

I have several data in a internal table, base on the data on the internal table I'm using BAPI_PO_CREATE1 to create purchase order.

On my first loop in the internal table, the BAPI_PO_CREATE1 was able to create the first PO. However, for the subsequent loops (second, third etc...) BAPI_PO_CREATE1 was not able to create PO. I have debugged and found out that the KOMP-NETPR has no value & I'm getting an error message "Net price must be greater than 0".

I also tried to pass some value on the net price in the POITEM table of the BAPI_PO_CREATE1 but it doesn't work.

I can't figure out where & why KOMP-NETPR has no value and I also don't know why the first loop always work.

Please shed some light on this. Thanks in advance.