Symptom
There is a requirement to update the picking quantities for multiple outbound delivery items in batch.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
Use the batch request of Outbound Delivery (A2X) to update multiple outbound delivery items in batch.
"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 delivery items are picked in a changeset:
#Request header
POST /sap/opu/odata/sap/API_OUTBOUND_DELIVERY_SRV;v=2/$batch
Content-Type: multipart/mixed; boundary=batch
X-CSRF-Token: abc
#Request body
--batch
Content-Type: multipart/mixed; boundary=changeset
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST SetPickingQuantityWithBaseQuantity?DeliveryDocument='80135078'&DeliveryDocumentItem='10'&ActualDeliveredQtyInBaseUnit=1.000m&BaseUnit='PC' HTTP/1.1
if-match: *
--changeset
Content-Type: application/http
Content-Transfer-Encoding: binary
POST SetPickingQuantityWithBaseQuantity?DeliveryDocument='80135078'&DeliveryDocumentItem='20'&ActualDeliveredQtyInBaseUnit=1.000m&BaseUnit='PC' HTTP/1.1
if-match: *
--changeset--
--batch--
See Also
Keywords
picking, outbound delivery, batch, SAP S/4HANA Cloud Public Edition, batch request, Outbound Delivery (A2X), SetPickingQuantityWithBaseQuantity , KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , How To