‎2009 Jan 08 6:02 PM
Hi Folks,
I have a little question about BAPI_TRANSACTION_COMMIT mainly.
I was wondering if I call 2 times BAPI_PO_CREATE1 before calling BAPI_TRANSACTION_COMMIT will this create 2 POs or this will create only the last PO in memory?
Another thing is that if the 2 POs are created in memory, the 2nd PO validation checks take in count the 1st PO, for example, total item quantity(1st PO + 2nd PO) don't exceed the purchase requisition item quantity.
Thanks in advance for your help.
Regards,
Gilberto Li
‎2009 Jan 08 6:24 PM
Hello Gilberto,
BAPI_TRANSACTION_COMMIT is the signal to write the data to the database. So, if you have two PO's created via BAPI_PO_CREATE1, at the point of the commit they are both stored to database.
If the two PO's are not independent form each other, you should commit after the first. Else the second can't check, that the first is existing.
Regards Wolfgang
‎2009 Jan 08 6:24 PM
Hello Gilberto,
BAPI_TRANSACTION_COMMIT is the signal to write the data to the database. So, if you have two PO's created via BAPI_PO_CREATE1, at the point of the commit they are both stored to database.
If the two PO's are not independent form each other, you should commit after the first. Else the second can't check, that the first is existing.
Regards Wolfgang
‎2009 Jan 08 6:59 PM