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
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.