SAP Knowledge Base Article - Public

3698875 - Error 06/010 "Document contains no items" when creating purchase order with API_PURCHASEORDER_2

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

  1. Go to SAP OData Gateway and select the Patch operation.
  2. Use the below endpoint and payload to execute the operation:
    URI: /sap/opu/odata4/sap/api_purchaseorder_2/srvd_a2x/sap/purchaseorder/0001/PurchaseOrder
  3. Execute 
  4. 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