Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bapi X bapi_transaction_commit

Former Member
0 Kudos

Hi

Can I execute some bapi several times and after that, if no error occurs, call the bapi_transaction_commit a single time?

Because I'm doing this, it is generating an inconsistency, and the SAP Active Global Support tell me that I must call the commit for each bapi execution.

Inside the bapi, there are some perform on commit that does not works when are stacked. Only the first one is triggered after the commit

Thanks

Darley.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You have to call COMMIT after each call of BAPI otherwise It won't update.

3 REPLIES 3

Former Member
0 Kudos

Commit should be after every BAPI call.

regards,

Advait

Former Member
0 Kudos

Hello

Logic:


call function 'BAPI_1_....'.
call function 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.
* do anything here
call function 'BAPI_2_....'.
call function 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.
* do anything here
call function 'BAPI_3_....'.
call function 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.

Former Member
0 Kudos

You have to call COMMIT after each call of BAPI otherwise It won't update.