Symptom
One of the following two errors is returned when posting goods issue for an outbound delivery via API API_OUTBOUND_DELIVERY_SRV_0002:
- 412 Precondition Failed
- 428 Precondition Required
Environment
S/4HANA Cloud Public Edition
Reproducing the Issue
Use the API API_OUTBOUND_DELIVERY_SRV_0002 to post goods issue for the outbound delivery using operation PostGoodsIssue, for example, the URL is:
Cause
Incorrect or outdated Etag is passed in the request header or the Etag is missing.
- 412 Precondition Failed - You send a request using an ETag that is already outdated.
- 428 Precondition Required - You send a request without passing an ETag
Resolution
The operation PostGoodsIssue requires the current ETag of the outbound delivery:
- 412 Precondition Failed - Execute a GET request to fetch the current ETag and send the request again.
- 428 Precondition Required - Add the parameter If-Match to the request body and pass the current ETag of the delivery that you want to change.
Refer to the below help documentation:
See Also
API_OUTBOUND_DELIVERY_SRV, PostGoodsIssue, http error code 412, http error code 428, Precondition Failed, Precondition Required
Keywords
KBA , LE-SHP-API-2CL , Interfaces for Delivery Documents (API) (Public Cloud) , Problem