SAP Knowledge Base Article - Public

3540581 - Error when releasing production order with API API_PRODUCTION_ORDER_2_SRV

Symptom

The following error occurs while attempting to release a Production Order via API API_PRODUCTION_ORDER_2_SRV:

  • The error message displayed is "Order xxxxxxxx: Precondition required".

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Try to release a production order via API API_PRODUCTION_ORDER_2_SRV
  2. The error message occurs "Order xxxxxx: Precondition required".

Cause

The issue arises when the ETag is not provided in the if-match header during the API call. The ETag value must be obtained from the LastChangeDateTime property or from the response header of a previous READ operation.

Resolution

  1. Ensure the ETag is provided in the if-match header during the API call.
  2. The ETag value must be obtained from the LastChangeDateTime property or from the response header of a previous READ operation.
  3. If the ETag is not provided in the if-match header, the error "Precondition required" will be displayed.

Please check the following SAP Help link and make sure all requirements are met:

See Also

Release Production Order

Keywords

SAP S/4HANA Cloud Public Edition, API, Production Order, Release, Error, ETag, Precondition required, error, Order, Precondition required , KBA , PP-SFC-ES-2CL , Enterprise Services in Shop Floor Control (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions