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
- Attempt to update a custom-created purchase order type using the API 'API_PURCHASEORDER_2' by executing a PATCH operation.
- Observe that the operation fails with the error message "Operation is not enabled".
- Repeat the same PATCH operation for the standard purchase order type 'NB' using the same API.
- 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
- 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.
- 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:
.
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
SAP Knowledge Base Article - Public