Symptom
Create multiple outbound deliveries from a single sales order that contains only one item.
Environment
SAP S/4HANA Cloud Public Edition
Cause
Resolution
Use the batch request of Outbound Delivery (A2X) to implement this requirement.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
In the example below, two deliveries are created in a changeset:
#Request header
POST <host>/sap/opu/odata/sap/API_OUTBOUND_DELIVERY_SRV;v=2/$batch
X-CSRF-Token: abc
#Request body
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST A_OutbDeliveryHeader HTTP/1.1
Content-Type: application/json
{
"to_DeliveryDocumentItem" : {
"results": [
{
"ReferenceSDDocument": "900001",
"ReferenceSDDocumentItem": "10",
"ActualDeliveryQuantity":"1",
"DeliveryQuantityUnit":"PC"
}
]
}
}
--changeset--
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST A_OutbDeliveryHeader HTTP/1.1
Content-Type: application/json
{
"to_DeliveryDocumentItem" : {
"results": [
{
"ReferenceSDDocument": "900001",
"ReferenceSDDocumentItem": "10",
"ActualDeliveryQuantity":"1",
"DeliveryQuantityUnit":"PC"
}
]
}
}
--changeset--
--batch—
Keywords
outbound deliveries, sales order, SAP S/4HANA Cloud Public Edition, batch request, Outbound Delivery (A2X) , KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , Problem
SAP Knowledge Base Article - Public