SAP Knowledge Base Article - Public

3555741 - Cannot create/update Purchase Order NB2 using API_PURCHASEORDER_2

Symptom

  • Unable to create a PO with document type rather than NB.
  • Unable to update values at header and item level using API API_PURCHASEORDER_2 for document type rather than NB.

Environment

SAP S/4HANA Cloud Public Edition

Cause

The OData service API_PURCHASEORDER_2 only supports the purchase order type Standard ("NB") and any customer-defined purchase order type ("ZNB*") that has been copied with all dependent entries from purchase order type "NB".

Resolution

  1. Ensure the custom PO type is copied correctly from the standard type ‘NB’, including all dependent settings.
  2. Verify that the item categories in the custom PO type are supported by the API:
Purchase Order Item CategoryInternal SymbolExternal Symbol
Standard0' ' (=blank)
Subcontracting3L
Third- Party5S
Enhanced Limits (for materials or lean services)AE
Consignment2K

Note that Service 'D' is not supported.

Refer to the full documentation: Purchase Order (OData V4)

Keywords

S4HC, Purchase Order (OData V4), API_PURCHASEORDER_2, API, NB, NB2, update Purchase Order, API_PURCHASEORDER_PROCESS_SRV, S4_1C, X4BC, MM-PUR-PO-2CL, S4PC , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions