BAPI Transactional Support
The BAPIs introduced with SAP system releases 4.0 and later do not automatically commit their changes as in prior SAP releases. An external program executing a BAPI inside SAP now has a choice to commit or rollback changes. To commit or rollback the changes, every request to SAP for such BAPIs needs to be followed by BAPI_TRANSACTION_COMMIT
or BAPI_TRANSACTION_ROLLBACK
. Also BAPI_TRANSACTION_COMMIT
/BAPI_TRANSACTION_ROLLBACK
should be processed with the same handle as that of the actual transaction BAPI. The adapter provides this transactional BAPI support in single-threaded as well as multi-threaded mode.
You can commit or rollback changes based on the reply from the transactional BAPI.