Symptom
A new workflow has been configured for a new sales document category, for example, "I - Order Without Charge". The BAdI SD_APM_SET_APPROVAL_REASON is configured and workflow setup is done, however, upon creating sales documents for that newly configured category, for example, sales orders without charge, the BAdI is not triggered, so approval reason is not set and approval process never starts.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Example using SD Document Category "I - Order Without Charge" and sales orders without charge (CBFD)
- Configure a flexible workflow for sales orders without charge with appropriate start conditions in Manage Sales Document Workflows.
- Configure BAdI SD_APM_SET_APPROVAL_REASON and make sure the conditions cover the scenario for this document category and type.
- Create and save a sales order without charge that meets the defined BAdI conditions and workflow start conditions.
- Observe that no workflow instance starts and the document shows as not relevant for approval.
Cause
There's no assignment of an approval request reason for the SD Document Category.
Resolution
Using the configuration activity "Assign Reasons for Approval Request" (ID: 102752), assign an approval request reason for the concerned SD Document Category.
See Also
SAP Help Portal - Approval Workflows for Sales Documents
Keywords
sales order without charge, flexible workflow, workflow not starting, approval request reason, SD document category, order without charge category I, approval status not relevant, manage sales document workflows, assign reasons for approval request, workflow start conditions, sales document approval, public cloud workflows, BAdI not triggered , KBA , SD-SLS-WFL-2CL , Approval Workflows (Public Cloud) , Bug Filed
SAP Knowledge Base Article - Public