SAP Knowledge Base Article - Public

3092828 - Sales order is set to status "in approval" although the workflow hasn't been activated yet

Symptom

When creating or changing a sales order, it is set to the status "in approval" after saving, although the related workflow hasn't been activated yet.

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. And if yes, it will set an approval request reason on sales document header level.

If this BAdI sets an approval request reason for the sales order, there must be at least one active workflow with an according start condition. Otherwise, the BAdI may put documents into approval, but no workflow will ever send them to a designated approver.

Resolution

Please adjust the logic in the BAdI "SD_APM_SET_APPROVAL_REASON" by deleting the related logics whose workflow hasn't been published yet. Or, please activate the workflow as soon as possible.

Keywords

Sales Order, In Approval, Workflow, Draft, Activate, Business Add-In, BAdI, SD_APM_SET_APPROVAL_REASON, Sales Document, Approver, Approval Request Reason, Sales Document Header, Active Workflow, Start Condition, Send , KBA , SD-SLS-SO , Sales Orders , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud 2108