{"id":"b1edb468-42b8-4f76-a7fd-f9fe99cc83d1","task":"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","steps":["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.","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.","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.","Include headers: Content-Type: application/json, X-CSRF-Token: <token>, and the session cookie returned from the fetch step.","Check the response for the created confirmation document number; HTTP 201 indicates success.","For batch confirmation of multiple orders, wrap multiple requests in an OData $batch envelope to reduce round-trips."],"gotchas":["API_PRODUCTION_ORDER_2_SRV and API_PROD_ORDER_CONFIRMATION_2_SRV are separate OData services — reading order status and posting confirmations require different service paths and potentially different OAuth scopes.","The X-CSRF-Token expires with the session; for long-running integration processes, re-fetch the token when a 403 Forbidden with 'Required' in the X-CSRF-Token response header is returned.","ConfirmedYield and ConfirmedScrapQuantity must be consistent with the base unit of measure on the order — passing values in an alternate UoM without conversion causes incorrect postings without an explicit error."],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:26.626Z"},"url":"https://mcp.waymark.network/r/b1edb468-42b8-4f76-a7fd-f9fe99cc83d1"}