Symptom
When creating an inbound delivery using the DeliveryRequest_In SOAP service, a serial number is assigned to an incorrect inbound delivery item.
The serial number is provided under the first DeliveryItem in the request payload. However, after the inbound delivery is created, the first item has no serial number and the serial number is assigned to the second item instead.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create an inbound delivery using the DeliveryRequest_In SOAP service.
- Send a payload containing multiple DeliveryItem nodes.
- Provide DeliveryDocumentItemBySupplier for the delivery items without providing DeliveryDocumentItem.
- Include a Serial node with a serial number under the first DeliveryItem.
- Process the request and open the created inbound delivery.
- Check the serial number assignment.
- The serial number provided for the first item is assigned to the second inbound delivery item.
Cause
DeliveryDocumentItem is not provided for the delivery items in the inbound request.
Although DeliveryDocumentItem is documented as optional, in this scenario the serial number may not be assigned to the intended inbound delivery item when only DeliveryDocumentItemBySupplier is provided.
Resolution
Provide DeliveryDocumentItem with a unique item number for each DeliveryItem in the DeliveryRequest_In payload.
For example:
<DeliveryItem>
<DeliveryDocumentItem>ITEM_NUMBER</DeliveryDocumentItem>
<DeliveryDocumentItemBySupplier>SUPPLIER_ITEM_NUMBER</DeliveryDocumentItemBySupplier>
...
<Serial>
<SerialNumber>SERIAL_NUMBER</SerialNumber>
</Serial>
</DeliveryItem>
After adding DeliveryDocumentItem to the payload, the serial number is assigned to the intended inbound delivery item.
See Also
Help Portal - DeliveryRequest_In (Inbound Delivery)
Keywords
DeliveryRequest_In, inbound delivery, serial number assignment, wrong item, misassigned serial, SOAP EDI, EDI inbound, delivery item mapping, DeliveryDocumentItem, serial mapping, S4H public cloud, serial number payload, SOAP payload, item identification, warehouse inbound , KBA , LE-SHP-GF-EDI-2CL , EDI/ALE Delivery (Public Cloud) , How To
SAP Knowledge Base Article - Public