Symptom
- During the creation of a Purchase Order (PO) using the Business Object I_PurchaseOrderTP_2, the delivery address number is overwritten with a new value different from the one passed to the API.
- This behavior is unexpected as there is no BADI implementation overwriting the value.
- The associated error message is "Delivery address getting overwritten to unknown value".
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Attempt to create a PO using Business Object I_PurchaseOrderTP_2.
- Observe that the delivery address number is overwritten to a new value different from the one passed to the API.
Resolution
To properly assign the delivery address at the item level, you should use the ReferenceDeliveryAddressID field instead of DeliveryAddressID.
The DeliveryAddressID is typically used to set a default or global delivery address for the entire order, whereas the ReferenceDeliveryAddressID allows you to specify a different delivery address for each individual item within the order.
Keywords
SAP S/4HANA Cloud Public Edition, Purchase Order, Delivery Address, Overwritten, Business Object, I_PurchaseOrderTP_2, API, BADI Implementation. , KBA , MM-PUR-PO , Purchase Orders , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions