2007 Jun 12 10:45 AM
Hi,
Can anyone tell me the actual purpose of bapi_transaction_commit . Y it is used??
Vighnesh .
2007 Jun 12 10:47 AM
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
2007 Jun 12 10:47 AM
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
2007 Jun 12 10:47 AM
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.
2007 Jun 12 10:54 AM
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
2007 Jun 12 10:55 AM
Hi,
BAPI_TRANSACTION_COMMIT to commit the changes to the database.
Thanks,
Anitha
2007 Jun 12 10:56 AM
If your BAPI doesnt have implicit commit u have to call BAPI_TRANSACTION_COMMIT, this only update all the databsae operation.