SAP Knowledge Base Article - Public

3642866 - PATCH Operation Fails for Statistical Condition Types in API_SALES_ORDER_SRV – ConditionRateValue Not Updating in sap s/4hana cloud public edition

Symptom

  • Error during sales order pricing element update through API and payload.
  • The PATCH request to update a specific condition type (e.g., ZTX2) fails, even though other condition types succeed.
  • The error occurs when attempting to update the A_SalesOrderHeaderPrElement entity in the API_SALES_ORDER_SRV service.
  • Relevant error message: "Field CONDITIONTYPE is not an input field."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Use the API endpoint for A_SalesOrderHeaderPrElement in the API_SALES_ORDER_SRV service.
  2. Perform a PATCH operation to update a pricing element with a payload containing a condition type flagged as Statistical in the pricing procedure (e.g., ZTX2).
  3. Observe that the update fails, and an error message is returned:  "Field CONDITIONTYPE is not an input field."

Cause

  • In SAP S/4HANA Cloud Public Edition, the A_SalesOrderHeaderPrElement entity is read-only for certain condition types.
  • Key fields for statistical conditions are marked in the OData metadata as sap:updatable="false", preventing changes via API or UI.
  • A Statistical condition type in the pricing procedure configuration is informational only and does not influence pricing calculations.
  • As such, statistical conditions are excluded from PATCH operations in APIs like API_SALES_ORDER_SRV.

Resolution

  1. Confirm that the A_SalesOrderHeaderPrElement entity is read-only and cannot be updated via API.
  2. Identify the condition type flagged as Statistical in the pricing procedure configuration.
  3. To enable updates, use an alternative condition type that is not marked as Statistical.
  4. For manual updates, use SAP Fiori apps such as "Manage Sales Orders."
  5. Refer to SAP Note 2991011 for further details on limitations and behavior of the API_SALES_ORDER_SRV service.

See Also

Refer to: 2991011 - An API_SALES_ORDER_SRV PATCH on Pricing element header results in error 'Field CONDITIONTYPE is not an input field'

Keywords

Sales Order, Pricing Element, API_SALES_ORDER_SRV, PATCH Operation, Condition Type, Statistical Condition, SAP S/4HANA Cloud Public Edition, Public Cloud, Read-Only Entity, Pricing Procedure, Error During Update, Field CONDITIONTYPE, API Limitation, Manage Sales Orders, SAP Fiori, Update Failure , KBA , SD-SLS-SO-MO-2CL , Make-to-order, assembly order (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions