SAP Knowledge Base Article - Public

3669206 - Unable to perform PATCH operation on custom purchase order type using API_PURCHASEORDER_2

Symptom

  • Unable to update custom created order type using API 'API_PURCHASEORDER_2' by executing PATCH operation.
  • Standard order type 'NB' can be updated using PATCH operation with the same API.
  • Error message received: "Operation is not enabled".

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Attempt to update a custom-created purchase order type using the API 'API_PURCHASEORDER_2' by executing a PATCH operation.
  2. Observe that the operation fails with the error message "Operation is not enabled".
  3. Repeat the same PATCH operation for the standard purchase order type 'NB' using the same API.
  4. Observe that the operation succeeds for the standard purchase order type 'NB'.

Cause

The OData service API_PURCHASEORDER_2 only supports the purchase order type Standard ('NB') and any custom-defined purchase order type ('ZNB*') that has been copied with all dependent entries from purchase order type 'NB'. Additionally, the error "Operation is not enabled" may indicate the presence of an invalid item category.

Resolution

  1. Ensure that the custom purchase order type has been copied with all dependent entries from the standard purchase order type 'NB', as described in KBA: 3555741.
  2. Verify that the item categories used in the custom purchase order type are valid and supported by the API. Refer to the supported item categories listed below:
  • Standard: Internal Symbol = 0, External Symbol = ' ' (blank)
  • Subcontracting: Internal Symbol = 3, External Symbol = L
  • Third-Party: Internal Symbol = 5, External Symbol = S
  • Enhanced Limits (for materials or lean services): Internal Symbol = A, External Symbol = E
  • Consignment: Internal Symbol = 2, External Symbol = K

Note: Service ('D') is not supported.  

      3. Refer to the SAP Help Portal documentation for Purchase Order (OData V4) for additional details:

Purchase Order (OData V4).  

.

Keywords

API_PURCHASEORDER_2, PATCH operation, custom purchase order type, standard purchase order type, NB, ZNB, Operation is not enabled, SAP Note 3555741, item categories, Purchase Order, OData V4, procurement process , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , MM-PUR-PO , Purchase Orders , Problem

Product

SAP S/4HANA Cloud Public Edition all versions