SAP Knowledge Base Article - Public

3560088 - Sales Order Workflow Triggered Despite Unfulfilled Start Conditions in SAP S/4HANA Cloud Public Edition

Symptom

The approval status of the sales order becomes "In Approval" although the start conditions maintained in the "Manage Sales Document Workflows" app are not met. 

Environment

SAP S/4HANA Cloud Public Edition

Cause

The sales order workflow conditions do not match the BAdI SD_APM_SET_APPROVAL_REASON. Although the sales order meets the "approval request reason" set by the BAdI, this reason does not align with any of the start conditions for the sales order workflows. Consequently, the BAdI places the sales order into approval, but no workflow will send it to a designated approver.

Resolution

Follow these steps to prevent the sales order from entering the approval process:

  1. Modify the BAdI (SD_APM_SET_APPROVAL_REASON) to ensure that the "approval request reasons" in the BAdI correspond exactly to the start conditions of the active workflows.
  2. Refer to KBA 2997066 to withdraw the approval request of the sales order.

See Also

  • Help Portal - How to Set Up Approval Workflows in Your System
    >> "Always ensure that all workflow conditions you set match the BAdI implementation. If the BAdI sets an approval request reason, 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."
  • KBA 2997066 - How to withdraw the approval request when a sales document is in the status of "in approval"?

Keywords

SAP S/4HANA Cloud Public Edition, Sales order, In approval, Manage sales document workflows, Workflow, Start condition, BAdI, SD_APM_SET_APPROVAL_REASON, Match, Approval request reason, Withdraw , KBA , SD-SLS-SO-2CL , Sales Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions