Symptom
User is able to send the output to supplier while the PO status is rejected.
Deleting all items of rejected PO is still sending the output to the vendor.
Environment
SAP S/4HANA Cloud Public Edition.
Reproducing the Issue
-
App: Manage Purchase Order
-
Select Purchase Order which is with Rejected status
-
Navigate to Output Management > Edit > Add > Fill the new line with output details
-
Submit > Send output > order
Newly created output line is with status -> completed while the purchase order status is rejected.
Cause
When a purchase order is with the rejected status then actual processing status changes from 3<release completed> to 8 <rejected>
Delete line item from the PO then the PO rejection will get canceled automatically as per the system behavior. After the deletion of the line item the PO will not be having any open items and then the release strategy tab will disappear setting processing state from 2 from 8 and field "release not yet completely affected" ( EKKO-FRGRL ) is set to blank from "X". The PO release is complete and that's why the message is being sent to the supplier.
Unless a valid change to the PO is done only then the processing status related to workflow will trigger again and resets it from rejected status.
Resolution
1. Since PO is rejected there is no need to delete all line items instead you can simply leave the PO as it is as you don't want the PO any way.
2. If you delete all items on a rejected PO then It's not possible to restrict sending the mail to the vendor.This is the standard behavior.
Workaround: use standard Form Template MM_PUR_PURCHASE_ORDER or Form that will not show rejected Items and the form sent to the vendor will not have any items. So the vendor will not get confused.
Keywords
po order rejected and output is completed status, new output sent when purchase order status rejected. , KBA , MM-FIO-PUR-PO-WFL , Purchase Order Workflow , Problem