BAPI_TRANSACTION_COMMIT for multiple tables at once

Tags:
SAP ABAP
SAP BAPI
Hi Experts,
My requirement is like this I'm getting data from an external system and i am mapping that data in the SAP format. I am calling a Function module to update the required tables. In that function module two bapi's are being called for updating two table BP1012 & BP3100.
This functionality is inside a loop and the updation happens for each record.
First BP3100 bapi will be called and then BAPI_TRANSACTION_COMMIT and then BP1012 and BAPI_TRANSACTION_COMMIT.
For BP3100 data is getting updated as expected  and for BP1012 COMMIT is not working for multiple iterations or multiple entries.
So i have thought of using BAPI_TRANSACTION_COMMIT outside the loop so that both tables will get updated at a time.
I am not sure whether this works or not. So, i need your help for achieving this and also wanted to know how the BAPI BUFFER will work in general and during this situation.
Waiting for your valuable information.


Software/Hardware used:
SAP ABAP
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Use WAIT statement with the BAPI_TRANSACTION_COMMIT for some seconds. You can mention your own value of seconds. The reason of  using the WAIT statement is to ensure that a new record has been updated successfully.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: