SAP Knowledge Base Article - Public

3614263 - Behaviour Contract Violation error when updating manufacturing order operation

Symptom

When updating Custom Fields on operation level in the Production Order, the following error message appears:

"Runtime Error: 'BEHAVIOR_CONTRACT_VIOLATION'. The OData request processing has been abnormally terminated. Analyze the runtime error using Feed Reader in ABAP development tools for Eclipse or using transaction /IWFND/ERROR_LOG or /IWBEP/ERROR_LOG or ST22. Create a support ticket on the application component of the OData service for errors in services delivered by SAP."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

Updating custom fields with API_PRODUCTION_ORDER_2_SRV/A_ProductionOrder_2.
 
Key users can extend the OData Service in the Custom Fields app using the following business contexts:
  • Order Master Data (FINS_ORDER)

  • Manufacturing: Order Operation (PP_ORDER_OPERATION)

  • Reservation Document Item (RESERVATIONDOCUMENTITEM)
     

It is necessary to enable the usage of your custom fields in the APIs section of the Custom Fields app and publish them.

Resolution

Ensure that the usage of custom fields are enabled for the data source I_PRODUCTIONORDEROPERATIONTP (Production Order Operation Projection - TP).

See Also

SAP Help Portal: Extensibility: Production Order (Version 2)

“When the service calls the Production Order business object, you also have to enable the usage of your custom fields for the data source I_PRODUCTIONORDEROPERATIONTP (Production Order Operation Projection - TP).”

Keywords

behaviour contract violation, error, BEHAVIOR_CONTRACT_VIOLATION, Production Order, manufacturing order operation, custom fields, update error, SAP S/4HANA Cloud Public Edition, I_PRODUCTIONORDEROPERATIONTP, API_PRODUCTION_ORDER_2_SRV, runtime error, extensibility, integration tools, key user extensibility tools , KBA , PP-SFC-ES-2CL , Enterprise Services in Shop Floor Control (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions