Application Development and Automation 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: 
Read only

bapi X bapi_transaction_commit

Former Member
0 Likes
519

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
Read only

Former Member
0 Likes
483

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

3 REPLIES 3
Read only

Former Member
0 Likes
483

Commit should be after every BAPI call.

regards,

Advait

Read only

Former Member
0 Likes
483

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'.

Read only

Former Member
0 Likes
484

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