‎2006 Feb 17 9:17 PM
Hi All,
I am just learning BAPI's. I wrote a small program to upload a purchase order using FM BAPI_PO_CREATE1. After I execute the program and print the contents of return structure,I get a success messgae along with the PO number.But when I check the database table ekko it doesn't show any Created PO. I do not understand what is happening. Can anyone please help me with this.
Regards,
Varun.
‎2006 Feb 17 9:19 PM
Please make sure to COMMIT after the call. Use 'BAPI_TRANSACTION_COMMIT'.
call function 'BAPI_PO_CREATE1'
exporting
poheader = pohead
poheaderx = poheadx
testrun = ' '
importing
exppurchaseorder = ex_po_number
expheader = exp_head
tables
return = return
poitem = poitem
poitemx = poitemx
poschedule = posched
poschedulex = poschedx.
<b> call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.</b>
Regards,
Rich Heilman
‎2006 Feb 17 9:19 PM
Please make sure to COMMIT after the call. Use 'BAPI_TRANSACTION_COMMIT'.
call function 'BAPI_PO_CREATE1'
exporting
poheader = pohead
poheaderx = poheadx
testrun = ' '
importing
exppurchaseorder = ex_po_number
expheader = exp_head
tables
return = return
poitem = poitem
poitemx = poitemx
poschedule = posched
poschedulex = poschedx.
<b> call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.</b>
Regards,
Rich Heilman
‎2006 Feb 17 9:21 PM
‎2006 Feb 17 9:23 PM
‎2006 Mar 01 1:00 AM
Hi Rich,
I have a problem with BAPI_PO_CREATE1
list of errors:
1.- Introduce also the parameter of POCONDX interface.
2.- Enter the positions in first place.
3.- The documents have not been created p/enjoy BAPI.
4.- The headers of de purchasing order are still wrong.
5.- Company code doesn't exist.
I have a nice day.
Regards!