SAP Knowledge Base Article - Public

3743365 - PO approval workflow not initiated after deleting all items following withdraw/reject; order sends to supplier

Symptom

Deleting all items from a Purchase Order and then withdrawing approval or rejecting the change results in no approval workflow being triggered when selecting “Order” again. Consequently, the Purchase Order output is sent to the supplier without approval. The behavior is reproducible in both production and test environments, and no error message is displayed.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create a purchase order and select Order.
  2. Approve the purchase order (output is sent to the supplier).
  3. Edit the purchase order and delete all items, then select Order.
  4. Withdraw approval or reject the purchase order.
  5. Select Edit.
  6. Select Order without making any changes.
  7. Observe that the purchase order is sent to the supplier without initiating the approval workflow.

Cause

The behavior is according to standard design. Flexible Workflow for Purchase Orders restarts only when restart-relevant fields configured in the workflow are changed. When all items are deleted from the Purchase Order, the document value becomes zero and the workflow is not triggered again after withdrawal or rejection. Deleting all items and withdrawing or rejecting approval are not considered restart-relevant changes.

Resolution

  1. Maintain restart conditions using SSCUI 103345 (Manage Conditions to Restart Flexible Workflow for Purchase Orders) to define which field changes should restart the workflow.
  2. To prevent sending a purchase order when all items are deleted after rejection/cancellation, implement a BAdI-based check (for example, via MMPUR_PO_WORKFLOW_RESTART or applicable guard logic) to block the action: when status is Rejected/Cancelled and all items are marked for deletion, display an error and stop ordering.
  3. Where a re-approval is desired, apply a header-level change that is configured as restart-relevant and then select Order so the workflow can start.

Keywords

purchase order workflow, flexible workflow, order sent without approval, delete all items, withdraw from approval, reject po, zero value po, restart conditions, sscui 103345, badi mmpur_po_workflow_restart, manage purchase orders, approval not initiated, output to supplier, workflow restart, po deletion control , KBA , MM-FIO-PUR-PO-WFL-CL , Purchase Order Workflow (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions