‎2007 Jun 01 12:31 PM
hi to all ,
why should we use bapi_ transaction_commit in bapi instead of commit work.
also can we use the bapi_transaction_commit in user-exit.
Regards ,
Kiran.
‎2007 Jun 01 12:47 PM
hi,
Each dialog transaction that uses BAPIs to change data in one or more objects must directly
execute the COMMIT WORK command to save the data. The BAPI
BapiService.TransactionCommit() is used for this and it writes the changes to the database.
If data is not to be written to the database, the BAPI BapiService.TransactionRollback() can reset
the changes, provided that the changes have not already been passed to the database with the
BAPI. This works provided that the BAPI BapiService.TransactionCommit has not already
passed the changes to the database.
Reward useful points
Siva