etag for API Outbound Delivery (A2X) in Process Automation

Hi Builders, 

I am using SAP Build Process Automation to create customer orders in S/4HANA Cloud Public Edition via a form and to generate an outbound delivery for the created sales order. For this, I am using Sales Order (A2X) and Outbound Delivery (A2X).

Process Flow:

  • Form
  • Sales Order (A2X) – /A_SalesOrder
  • Sales Order (A2X) – /A_SalesOrder(‘{SalesOrder}’)/to_Item
  • Outbound Delivery (A2X) – /A_OutbDeliveryHeader

Now, I want to pick the created delivery and post the goods issue.

  • Outbound Delivery (A2X) – /PickAllItems

PickAllItems requires If-Match. I have read the etag from the previous action and passed it along, but I consistently receive the response 428: PRECONDITION REQUIRED.

Response:

 

 

{
“error”: {
“code”: “/IWBEP/CM_MGW_RT/194”,
“message”: {
“lang”: “en”,
“value”: “Precondition required”
},
“innererror”: {}
}
}

 

 

 API Response:

 

 

{
“error”: {
“code”: “/IWBEP/CM_MGW_RT/194”,
“message”: {
“lang”: “en”,
“value”: “Precondition required”
},
“innererror”: {
“application”: {
“component_id”: “LE-SHP-API”,
“service_namespace”: “/SAP/”,
“service_id”: “API_OUTBOUND_DELIVERY_SRV”,
“service_version”: “0002”
},
“transactionid”: “08FA90346C190210E0067A4D3FEB3968”,
“timestamp”: “20250207063317.2384530”,
“Error_Resolution”: {
“SAP_Transaction”: “For backend administrators: use ADT feed reader “SAP Gateway Error Log” or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details”,
“SAP_Note”: “See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)”
},
“longtext_url”: “/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID=’%2FIWBEP%2FCM_MGW_RT’,MSGNO=’194′,MESSAGE_V1=”,MESSAGE_V2=”,MESSAGE_V3=”,MESSAGE_V4=”)/$value”,
“errordetails”: [
{
“ContentID”: “”,
“code”: “/IWBEP/CX_MGW_BUSI_EXCEPTION”,
“message”: “Precondition required”,
“longtext_url”: “/sap/opu/odata/iwbep/message_text;o=LOCAL/T100_longtexts(MSGID=’%2FIWBEP%2FCM_MGW_RT’,MSGNO=’194′,MESSAGE_V1=”,MESSAGE_V2=”,MESSAGE_V3=”,MESSAGE_V4=”)/$value”,
“propertyref”: “”,
“severity”: “error”,
“transition”: false,
“target”: “”
}
]
}
}
}

 

 

I checked online documentation and notes #3514624 and #353906.
After adding a GET with /A_OutbDeliveryHeader(‘{DeliveryDocument}’)/to_DeliveryDocumentItem etag is like this: 

 

 

{
“d”: {

},
“etag”: “W/”‘0002′””
}

 

 

and used it “as is” in next API call:

s3bi82_0-1738911103670.png

Response is still the same. 

Does anyone know the solution or have a hint?
thanks.

Scroll to Top