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
- Use the API endpoint for A_SalesOrderHeaderPrElement in the API_SALES_ORDER_SRV service.
- 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).
- 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
- Confirm that the A_SalesOrderHeaderPrElement entity is read-only and cannot be updated via API.
- Identify the condition type flagged as Statistical in the pricing procedure configuration.
- To enable updates, use an alternative condition type that is not marked as Statistical.
- For manual updates, use SAP Fiori apps such as "Manage Sales Orders."
- Refer to SAP Note 2991011 for further details on limitations and behavior of the API_SALES_ORDER_SRV service.
See Also
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
SAP Knowledge Base Article - Public