cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

SAP CPI - RFC Receiver interface does not works with BAPI_TRANSACTION_COMMIT

01-28-2026 5:21 PM
faisaljamal1 Explorer
365 views 0 comments
0 Likes
SAP Managed Tags
Labels
RFCSAP CI
Subscribe

Hello All,

I am working on an RFC receiver interface in SAP Cloud Integration where I am calling BAPI in SAP to create Orders. And I need to use the BAPIs "BAPI_TRANSACTION_COMMIT" to commit the transaction for creation of Orders in SAP or  "BAPI_TRANSACTION_ROLLBACK" to rollback in case of errors.
But even though I receive successful response during the BAPI call for Order creation, it seems like the COMMIT does not works. I searched on internet and I understood that this is most likely because of the two BAPI(creation and commit) calls are being made in different sessions. I need a little help to understand the possible options with RFC receiver adapter to handle this situation.
To add more about the scenario, the input to SAP CI might result in more than one different Orders and I need to COMMIT only after all these Orders are successful.
I have observed that the "Send Confirm Transaction" option in RFC adapter works, but it is committing individual Order creation, whereas I need to commit only after all Orders are successfully created otherwise "BAPI_TRANSACTION_ROLLBACK" should be triggered.
Any help will be appreciated. Thanks!

Regards,
Faisal

0 Likes

Accepted Solutions (0)

Answers (0)