SAP Knowledge Base Article - Public

3703125 - Production Order API API_PRODUCTION_ORDER_2_SRV Does Not Allow Creation of Production Orders Without Material

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

  1. Call the API API_PRODUCTION_ORDER_2_SRV.
  2. Execute a POST request to entity A_ProductionOrder_2.
  3. Omit the Material field or explicitly set "Material": null.
  4. Execute the request.
  5. 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:

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

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

Product

SAP S/4HANA Cloud Public Edition all versions