Symptom
- Sometimes, only one workflow group is displayed, and the previous workflows cannot be seen.
- Sometimes, all workflows appear when there is at least one cancelled workflow.
- How can it be identified whether a workflow was triggered initially or due to restart conditions (standard restart or via Restart BADI)?
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Use the ME23N application to display purchase orders.
- Enter the Flexible Workflow detail in the header.
- Observe that the Flexible Workflow history does not appear even though it is generated by the changes made to the purchase orders.
Resolution
1. When a document is in 'In Approval' status, you can edit or withdraw it to make changes. Once the changes are submitted, the workflow will trigger based on the configured workflows. New approval requests will then be generated, while the previous approvals will appear with 'Cancelled' status.
2. After a document has been fully approved, if you later edit it and make changes, the workflow will be triggered again based on the defined restart conditions (either standard restart or via Restart BADI).
In this case, only new approvals will be generated, while the previous workflows/approvals will appear as mentioned below.
a. Fiori apps like 'Manage purchase order', In 'Approval details' Tab, a drop down in the same screen is visible where all the previous workflows will appear.
b. GUI apps like 'Create purchase order', In 'Flexible workflow' Tab, a button called 'Instance' is there, upon clicking on the same all the previous workflows will appear.
Keywords
me23n, flexible workflow, history, purchase order, sap s/4hana cloud public edition, workflow detail, prd system, visibility, changes, buyer, no workaround, missing authorizations, old approvals, old workflows, previous workflow, previous approval, old approvals, old workflows , KBA , MM-FIO-PUR-PO-WFL-CL , Purchase Order Workflow (Public Cloud) , Problem
SAP Knowledge Base Article - Public