SAP Knowledge Base Article - Public

3019331 - Error message "Specify the same purchase order number for each item"

Symptom

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.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. 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.
  2. Use the payload which contains multiple SD reference documents.
  3. Error message "Specify the same purchase order number for each item" occurs.

Cause

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.

Resolution

You can use the SOAP API DELIVERYREQUEST_IN "Inbound Delivery – Create" as a workaround.

Keywords

API, inbound delivery, purchase order, multiple SD documents, split, error message, Odata, API_INBOUND_DELIVERY_SRV , KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions