Symptom
Facing "error": "code": "06/010", "message": "Document contains no items" when creating purchase order with API_PURCHASEORDER_2
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to SAP OData Gateway and select the Patch operation.
- Use the below endpoint and payload to execute the operation:
URI: /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder - Execute
- Error message is displayed.
Cause
Only 'NBF' field selection key is supported.
Resolution
The OData service supports only purchase order type Standard ("NB") and any customer-defined purchase order type (can be Z001,Z002,...) that has been copied with all dependent entries from purchase order type "NB".
Keywords
06/010, Document contains no items, Odata, API_PURCHASEORDER_2, PO, purchase order, 凭证不包含项 , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public