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_TRANSACTION_COMMIT

Former Member
0 Kudos

What is the use of WAIT flag in BAPI_TRANSACTION_COMMIT?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

A set of related tables will get affected while executing a BAPI.

While doing any operations to those tables using a BAPI those table will be holded and will be released after database operations.

Until those tables or released another database operation cannot be made, Inorder to process all the entries to the table using the BAPI, a span of time will mentioned to WAIT, by that time the tables will get released and will be ready for processing another entry.

Thanks

3 REPLIES 3

Former Member
0 Kudos

BAPI_TRANSACTION_COMMIT will return or not return the message depending on whether the value of parameter WAIT is set to 'X'. If it has failed it will return 'Posting could not be carried out'

Former Member
0 Kudos

Hi

It means your program'll waits for end of the commit, i.e.:

The updating of the BAPI start after calling the COMMIT (so BAPI_TRANSACTION_COMMIT), now your program can:

- 1) go on to work while database is beeing updated:

COMMIT WORK

- 2) wait for the end of database updating:

COMMIT WORK AND WAIT.

The first case is better for performance, the second case is better if it wants to make sure to continue only if the data are really saved.

Max

Former Member
0 Kudos

A set of related tables will get affected while executing a BAPI.

While doing any operations to those tables using a BAPI those table will be holded and will be released after database operations.

Until those tables or released another database operation cannot be made, Inorder to process all the entries to the table using the BAPI, a span of time will mentioned to WAIT, by that time the tables will get released and will be ready for processing another entry.

Thanks