SAP Knowledge Base Article - Public

3086121 - Newly set-up workflow is not triggered when creating a sales order

Symptom

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.

Environment

SAP S/4HANA CLOUD

Cause

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.

Resolution

Please update the logic in the BAdI SD_APM_SET_APPROVAL_REASON for sales organization 1000:

if salesdocument-salesorganization = '1000'.
salesdocapprovalreason = '1000'.
endif.

When the system sets an approval request reason for a sales document, the approval workflow will be triggered automatically.

Keywords

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 , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud 2108