Symptom
To ensure the integrity of processes using Advanced Intercompany Stock Transport Orders (5HP) in SAP, it's critical that certain fields in the purchase order, , such as the document type and delivery type, remain unchanged throughout the process. Changing these fields can lead to inconsistencies and potentially disrupt the supply chain operations.
Environment
SAP S/4HANA Cloud Public Edition
Cause
A purchase order was created and follow on documents exist already for a Stock Transfer Purchase Order
Now the user changes
- the Purchase order type and/or
- the Delivery Type
Examples (non-exhaustive):
PO of type NB, with Outbound Delivery (OBD) creation. PO-Type is changed from NB to NBIC
PO of type NBIC, with OBD creation. PO-Type is changed from NBIC to NB
PO of type NBIC with OBD creation. Delivery Type in Purchase Order is changed from NCC3 to NLCC
Resolution
To maintain consistency when working with Advanced Intercompany Stock Transport Orders (5HP) in SAP, it's essential to avoid the modification of the Document Type and Delivery Type fields.
To prevent manual changes to the Document type in SAP, using a Business Add-In (BADI) like BD_MMPUR_FINAL_CHECK_PO is a viable solution. BADIs allow for custom enhancements in SAP systems without modifying the original code. By implementing a BADI, you can enforce specific business rules that help maintain data consistency.
-
- Create a new implementation or modify an existing one.
- In the implementation class, write the logic to check for changes in Document Type.
-
Error Handling:
- Within the method provided by BD_MMPUR_FINAL_CHECK_PO implement a check to determine if the Document type has been altered.
- If a change is detected, trigger an error message using methods like
MESSAGE ... TYPE 'E'.This stops the save operation and informs the user about the restriction.
Keywords
NBIC, 5HP, Advanced Intercompany Stock Transport Orders . , KBA , MM-PUR-PO-IC-2CL , Purchase Orders Intercompany Processes (Public Cloud) , LE-IEW-OUT-2CL , Outbound Process (Public Cloud) , How To
SAP Knowledge Base Article - Public