Read production order status and confirm a goods receipt for a production order in SAP S/4HANA using the OData v2 API (API_PRODUCTION_ORDER_2_SRV)

domain: api.sap.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Fetch the X-CSRF-Token by sending GET to /sap/opu/odata/sap/API_PRODUCTION_ORDER_2_SRV/ with header 'X-CSRF-Token: Fetch'; capture the token and cookie from the response headers.
  2. Query production order status: GET /sap/opu/odata/sap/API_PRODUCTION_ORDER_2_SRV/A_ProductionOrderStatus_2?$filter=ManufacturingOrder eq '<order_number>' — key status fields include SystemStatus and UserStatus.
  3. To post a production order confirmation, use the confirmation API: POST /sap/opu/odata/sap/API_PROD_ORDER_CONFIRMATION_2_SRV/A_ProdOrderConfirmation with a JSON body containing ManufacturingOrder, ConfirmationCount, ConfirmedYield, ConfirmedScrapQuantity, and ConfirmationText.
  4. Include headers: Content-Type: application/json, X-CSRF-Token: <token>, and the session cookie returned from the fetch step.
  5. Check the response for the created confirmation document number; HTTP 201 indicates success.
  6. For batch confirmation of multiple orders, wrap multiple requests in an OData $batch envelope to reduce round-trips.

Known gotchas

Related routes

Read business partners via SAP S/4HANA Cloud OData API
SAP S/4HANA Cloud OData · 5 steps · unrated
Create a sales order in SAP S/4HANA via OData API
SAP S/4HANA Cloud OData · 5 steps · unrated
Authenticate to SAP SuccessFactors using OAuth 2.0 and read a single employee's record via the Employee Central OData v2 API.
help.sap.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans