After setting up a new sales document workflow for a certain sales organization (for example, 1000), when creating a sales order for this sales organization, the newly set-up workflow is not triggered.
SAP S/4HANA CLOUD
The Business Add-In (BAdI) SD_APM_SET_APPROVAL_REASON is called whenever a sales document is saved by a business user. It determines whether a sales document needs to be sent to an approver or not. If yes, an approval request reason will be set on the sales document header level. Although the new workflow for sales organization 1000 has been set up, the relevant custom logics in the BAdI SD_APM_SET_APPROVAL_REASON is not updated for sales organization 1000. As a result of this, no sales document approval reason can be set for sales orders with sales organization 1000 and the workflow is not triggered.
Please update the logic in the BAdI SD_APM_SET_APPROVAL_REASON for sales organization 1000：
if salesdocument-salesorganization = '1000'.
salesdocapprovalreason = '1000'.
When the system sets an approval request reason for a sales document, the approval workflow will be triggered automatically.
Sales Document Workflow, Sales Organization, Sales Order, Triggered, Business Add-In, BAdI, SD_APM_SET_APPROVAL_REASON, Approver, Approval Request Reason, Sales Document Header, Custom Logics , KBA , SD-SLS-SO , Sales Orders , Problem