Symptom
When using the Production Order API API_PRODUCTION_ORDER_2_SRV/A_ProductionOrder_2 to create a production order via a POST request, the system returns the error:
- Provide mandatory property Material
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Call the API API_PRODUCTION_ORDER_2_SRV.
- Execute a POST request to entity A_ProductionOrder_2.
- Omit the Material field or explicitly set "Material": null.
- Execute the request.
- The API returns the error: "Provide mandatory property Material".
Cause
According to SAP Help Portal - Create Production Order, for API API_PRODUCTION_ORDER_2_SRV/A_ProductionOrder_2, production orders without material are not supported for creation using API_PRODUCTION_ORDER_2_SRV. As a result, the system triggers the mandatory field validation and raises the error.
Resolution
Creating production orders without material is not supported using the API API_PRODUCTION_ORDER_2_SRV/A_ProductionOrder_2.
As an alternative, evaluate using the following option:
- Business Accelerator Hub: I_PRODUCTIONORDERTP
According to the SAP Business Accelerator Hub, I_PRODUCTIONORDERTP supports the following creation scenarios:
- With product
- For sales order
- For project
- Without product
- From planned order (conversion)
- Partially from planned order
See Also
- SAP Help Portal - Create Production Order
- Business Accelerator Hub - I_PRODUCTIONORDERTP
Keywords
API_PRODUCTION_ORDER_2_SRV, A_ProductionOrder_2, Production Order, API, Create Production Order, Production Order Without Material, Mandatory Property Material, Provide mandatory property Material, OData POST error, I_PRODUCTIONORDERTP, Business Accelerator Hub, Production Order Creation , KBA , PP-SFC-ES-2CL , Enterprise Services in Shop Floor Control (Public Cloud) , Problem
SAP Knowledge Base Article - Public