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
- Ensure the custom PO type is copied correctly from the standard type ‘NB’, including all dependent settings.
- Verify that the item categories in the custom PO type are supported by the API:
| Purchase Order Item Category | Internal Symbol | External Symbol |
|---|---|---|
| Standard | 0 | ' ' (=blank) |
| Subcontracting | 3 | L |
| Third- Party | 5 | S |
| Enhanced Limits (for materials or lean services) | A | E |
| Consignment | 2 | K |
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
SAP Knowledge Base Article - Public