Symptom
There is an option to delete/flag the Purchase Order(PO) line items for deletion where Goods Receipt and Invoice have been posted.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to app Change Purchase Order - Advanced.
- Mark the line item for deletion for which GR/IR posted.
- Save the Purchase Order.
Resolution
After all the procurement process is completed, it is possible to flag the Purchase Order item for deletion for archiving purposes.
Items are considered as closed if:
- The ordered quantity or more has already been delivered.
- The ordered quantity has been fully invoiced.
- No related follow-on processes, such as reservations, are active in the system.
As a workaround, the BAdI BD_MMPUR_FINAL_CHECK_PO can be used to implement own checks before a purchase order is saved to achieve the business requirements. Custom checks and custom error message can be raised if the PO history exists.
Keywords
S4_1C, X4BC, GR/IR, Invoice entry, invoice receipt, deletion indicator, PO item, Purchase order, quantity ordered, deleted, Marked for Deletion, Display Purchase Order - Advanced, Change, system block, ME22N, delete, post, posted, goods receipt, MM-PUR-PO, S4HC, S4_PC , KBA , MM-PUR-PO , Purchase Orders , Problem