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

Former Member
0 Likes
217

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.

1 REPLY 1
Read only

Former Member
0 Likes
200

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