Symptom
- During the edit of a Purchase Order, the workflow steps, which were successfully triggered at the time of Purchase Order creation, go into error.
Environment
-
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Open the "Manage Purchase Orders" application.
- Open any Purchase Order which is in approval and try to edit it.
- The workflow, which was successfully triggered earlier, now will display an error under "Approval Details".
or
- Open the "Manage Purchase Orders" application.
- Create new PO and enter all details.
- Go to Approval details tab.
- Error will appear.
Cause
The workflow has Custom preconditions.
or
Previously active workflow was deactivated before the PO is edited.
Resolution
- The custom preconditions are checked dynamically as per the logic in the custom implementation of BAdI SWF_WORKFLOW_CONDITION_EVAL. Hence, the approval details are only determined once the PO is saved.
- If the previous workflow that was active is now deactivated then the newly activated workflow details are only determined once the PO is saved cause only then system will check the new workflow that is now active.
Keywords
SAP S/4HANA Cloud Public Edition, Purchase Order, Workflow Steps, Error, Approval Details, Edit, Manage Purchase Orders, Custom Preconditions, Deactivated Workflow. , KBA , MM-FIO-PUR-PO-WFL-CL , Purchase Order Workflow (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions