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_tranaction_commit

Former Member
0 Kudos
132

Hi,

Can anyone tell me the actual purpose of bapi_transaction_commit . Y it is used??

Vighnesh .

6 REPLIES 6

Former Member
0 Kudos
108

Hi Vighnesh ,

In some bapi the command COMMIT WORK , is not there , so the changes made by the BAPI may not be commited , so in such BAPI we explicitly call the FM , so the LUW is commiteed.

Regards

Arun

Former Member
0 Kudos
108

Hi,

Commit work is used when you code directly in ABAP and make changes in the database and want to commit the database.

BAPI_TRANSACTION_COMMIT is used when you make changes to the SAP database by calling a BAPI from outside SAP and want to commit the database.

for more information check the following link:

http://www.sap-img.com/bapi.htm

***do reward if usefull

regards,

vijay

dev_parbutteea
Active Contributor
0 Kudos
108

Hi,

to commit any action done by bapi to database.

Thus, all tables will be updated before going to subsequent processing found after

bapi_transaction_commit .

Regards,

Sooness.

Former Member
0 Kudos
108

Hi,

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'

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.

Regards

Former Member
0 Kudos
108

Hi,

BAPI_TRANSACTION_COMMIT to commit the changes to the database.

Thanks,

Anitha

alex_m
Active Contributor
0 Kudos
108

If your BAPI doesnt have implicit commit u have to call BAPI_TRANSACTION_COMMIT, this only update all the databsae operation.