on 2021 Jan 25 12:30 PM
Hello Experts,
We have sales document approvers in external system, and approval process is completed using workflow in external system. In S4HC I completed the setup of approval request reasons and flagged the reasons as 'External Workflow'. I also updated the BADI to populate the correct approval reason. When order is created status is changing to 'In Approval' with proper reason. But now, how can I call the external workflow API? Is there a BADI where I can trigger this? Any input is greatly appreciated.
Regards,
Sam
Request clarification before answering.
Hi slan6,
In order to determine a sales order relevant for external approval, you can use the Business Add-In (BAdI) Set Approval Request Reasons for Sales Documents (SD_APM_SET_APPROVAL_REASON). You can find this BAdI in the Custom Fields and Logic app under Custom Logic, using the Sales: Sales Document business context.
I recommend you to read the following documentation:
Sales Order Header: https://help.sap.com/viewer/03c04db2a7434731b7fe21dca77440da/LATEST/en-US/28d644581efca007e10000000a...
Release or Reject Sales Orders in Approval: https://help.sap.com/viewer/03c04db2a7434731b7fe21dca77440da/LATEST/en-US/e1988bd7bd8246e685ab92eb49...
Hope this helps.
Arturo Montes de Oca
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Arturo Montes de Oca,
Thank you for your reply.
I am using BAdI Set Approval Request Reasons for Sales Documents (SD_APM_SET_APPROVAL_REASON) for setting the approval reason and order is going into approval process. Now my issue is triggering the external system workflow. By the time this BADI is triggered, sales document is not created and sales document number is not available in this BADI.
So my question is - is there any process where I can trigger external workflow? or am I missing something here?
Regards,
Sam
Hi slan6,
To use the APIs, you first need to create a communication arrangement based on the communication scenario.
On the SAP API Business Hub, check the Details tab of an API to see which communication scenarios it is part of. You can also search for a communication scenario to see which APIs it contains.
To Release or Reject Sales Orders in Approval, the communication scenario Sales Order Integration (SAP_COM_0109) contains the API Sales Order (A2X).
Please find relevant documentation here:
• Communication Management: https://help.sap.com/viewer/0f69f8fb28ac4bf48d2b57b9637e81fa/LATEST/en-US/2e84a10c430645a88bdbfaaa23...
• API Sales Order (A2X), check the API References tab, select the Service Operations option and you will find the invoke action for reject/approval request: https://api.sap.com/api/API_SALES_ORDER_SRV/resource
• FAQ for Sales Order Management and Processing: https://help.sap.com/viewer/03c04db2a7434731b7fe21dca77440da/LATEST/en-US/7fac58721052484c8fe785be46...
Best regards,
Arturo Montes de Oca
Here are some SAP resources you may review based on your topic "trigger | of | external workflow | sales document | approval | external system | approval process | s4hc | ap | sales order"
USING POSTMAN to test your i-Flow ? read data from a tab ...
Jan 15, 2019 ... ... access the Expertise Services Community at sap.com/s4hc-expertise. ... You have access to the customer's cloud system to make the requisite technical settings ... In order to do this, navigate to the following link on the SAP API HUB ... To do this, add a ?Request Reply? step from the ?Call -> External Call -?...
Sourcing & Procurement in SAP S/4HANA Cloud 2005
May 11, 2020 ... Tap to unmute ... Automatic document stamps triggered by workflow step**; Optimized ... Ariba Contracts into the operational system SAP S/4HANA Cloud. ... e.g. external workforce, by procuring those services from an external supplier. ... entry sheet is approved a service confirmation in the service order is?...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SAP recommends to only change approved sales documents in exceptional cases. Once a sales document is approved, subsequent processes like deliveries and billing are triggered. Keep in mind that you will have an impact on these subsequent processes if you change any approved documents.
While SAP strongly recommends that approved sales documents should not be changed there is an Emergency fallback in that the approved sales documents can be changed via the VAxx frontend WEBGUI transaction Apps such as Change Sales Orders (VA02)
Please refer to [KBA 2837726] for details
(https://launchpad.support.sap.com/#/notes/2837726)
I hope this answered your question! If it did, please mark it as the 'Best Answer' so I can continue learning and answering questions in the community.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
39 | |
8 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.