2 weeks ago
Hi Experts,
I have a question about calling BAPI_TRANSACTION_COMIT or BAPI_TRANSACTION_ROLLBACK from SAP Process Orchestration 7.5
In my scenario, I am calling BAPI_SALESORDER_CREATEFROMDAT2 from PO.
S4 will then respond with a message BAPI_SALESORDER_CREATEFROMDAT2.Response.
Based on this response, I should either call BAPI_TRANSACTION_COMIT or BAPI_TRANSACTION_ROLLBACK from PO to S4.
How can this be achieved without using BPM?
Hello,
as you have mentioned S/4, you should consider to not use BAPIs anymore, as those are not "clean core" - use instead the released API:
https://api.sap.com/api/OP_API_SALES_ORDER_SRV_0001
It should be available from Release 2020 FP2
There is a risk that a BAPI becomes deprecated or is not maintained with new features for new releases at a certain point in time.
If you want to stick on the BAPI, there is a way to generate an IDOC umbrella - i never did it myself, but just asked google and there a tons of tutorials round that. Then you deliver asynchronously from PI the data via IDOC to SAP and with this facade it's calling the BAPI - so you don't need to rework your logic - only rename the segments. A good example is SAP standard way on creating Purchase orders, where the IDOC interface is a rendered BAPI.
Hope that helps you.
BR Helmut
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.