Symptom
Some users are encountering issues with Purchase Requisitions (PR), such as incorrect addresses or notes, and are attempting to delete line items or entire PRs. Despite warning messages, deletion is carried out. The system needs to prevent users from deleting PRs or PR line items as long as there is a valid, undeleted Purchase Order (PO) in the system.
Environment
SAP S/4HANA Cloud Public Edition version 2102 and higher
Resolution
To stop users from deleting Purchase Requisitions (PR) or PR line items when there's an active Purchase Order (PO):
-
Create a Custom Error Message:
-
Use MM_PUR_S4_PR_CHECK to make a message that tells users they can't delete PRs or line items if a PO is active.
-
-
Use BD_MMPUR_FINAL_CHECK_PO:
- Use BD_MMPUR_FINAL_CHECK_PO to add checks before a PO is saved.
Keywords
S4_HC, S4_1C, App extensibility, PR, PO, delete, Badi, Check, Custom messages, Error messages, Manage purchase orders, MM-FIO-PUR-REQ-SSP , KBA , MM-FIO-PUR-REQ-SSP , Fiori UI for Self Service Procurement , Problem
SAP Knowledge Base Article - Public