Error message "Specify the same purchase order number for each item" occurs when creating an inbound delivery with multiple SD reference documents using API API_INBOUND_DELIVERY_SRV_0002.
SAP S/4HANA Cloud
Reproducing the Issue
- Use the API API_INBOUND_DELIVERY_SRV_0002 to create an inbound delivery. The URL is like https://myxxxxx-api.saps4hanacloud.cn/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=0002/A_InbDeliveryHeader.
- Use the payload which contains multiple SD reference documents.
- Error message "Specify the same purchase order number for each item" occurs.
The error message is intended. It is implemented to prevent potential delivery split during inbound delivery creation.
The system would not inform you the creation of multiple inbound deliveries if the error message is removed. It would only show you a single inbound delivery header entity.
You can use the SOAP API DELIVERYREQUEST_IN "Inbound Delivery – Create" as a workaround.
API, inbound delivery, purchase order, multiple SD documents, split, error message, Odata, API_INBOUND_DELIVERY_SRV , KBA , LE-SHP-API , Interfaces for Delivery Documents (API) , LE-SHP-DL , Delivery Processing , Problem