on 2024 Apr 02 10:49 PM
Hey Everyone ,
I'm trying to create PO with BAPI_PO_CREATE1. I don't get any errors, but when I look at the EKKO table with the document number, there is no record.
I use the function in LOOP, and in each attempt it creates the document in the 1st and 3rd loop, but it does not create the document in the 2nd loop.
It returns the same RETURN result for all three of them, but as I said, it does not create the second one, even though it says it has been created.
I would like to know your ideas . Tahnks All !
The picture of BAPI_PO_CREATE1's return ;
Request clarification before answering.
As Sandra recommenfs: After calling a BAPI function, check the RETURN parameter. If no error is recorded, call function BAPI_TRANSACTION_COMMIT, in case of error call function BAPI_TRANSACION_ROLLBACK. This is a quite old ABAP principle: Database updates are done asynchronous in background task not before the transaction has been COMMITed. This helps to ensure database consistency if more than one database table is involved in update process. Also processing speed is gained because database updates are done in background while the processing in foreground already continues. 50 years ago this was essential.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It worked, thank u !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.