Symptom
You deleted all item lines of a Purchase Order and the Workflow is triggered.
Environment
SAP S/4HANA Cloud 2108
Reproducing the Issue
- Create a Purchase Order with multiple lines
- Purchase Order goes to approval
- Purchase Order approved
- Access this same Purchase Order and delete all line items
- Workflow is triggered
Cause
When deleting one or more items the Net Value of the PO is changed, so if you have the Net Price set to re-trigger the Workflow in the SSCUI Manage Conditions to Restart Flexible Workflow, the Workflow will be retriggered .
Resolution
With the delivery of SAP S/4HANA Cloud CE2108, user will have the BAdI Enhancement for Restart/Retrigger Approval Process:
•SSCUI ‘Manage conditions to restart flexible workflow’ provides flexibility to control the restart of a purchase order post approval or during approval for certain restart relevant fields.
• Workflow Restart Badi ‘mmpur_po_workflow_restart’ can be used to overwrite the conditions defined in SSCUI ‘Manage conditions to restart flexible workflow’ and influence on the workflow restart.
•The BAdi takes Precedence over both SSCUI & CEKKO for Workflow restart decision.
•Importing parameter available in Badi Interface
•Changes in whitelisted fields of Purchase Order
•Changes in whitelisted fields of Purchase Order
•SSCUI ‘Manage conditions to restart flexible workflow’ config details
•Standard restart type decision
Keywords
Purchase Order; BAdI; Restart Workflow; Purchase Order Workflow , KBA , MM-FIO-PUR-REL , Fiori UI for Purchasing Approval , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions