Symptom
When calling the V2 API API_SALES_ORDER_SRV to create a sales order with multiple items, the returned errors are not linked to specific items. This makes it difficult for users to identify which item is causing the issue.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Call V2 API API_SALES_ORDER_SRV to create a sales order with multiple items.
- If errors occur, the API returns them without binding them to specific items.
- As a result, it is unclear which item has the issue.
Cause
The V2 API API_SALES_ORDER_SRV lacks functionality to bind errors to specific items.
Resolution
As a workaround, use the newer API version:
- OData V4 API CE_SALESORDER_0001
- This version binds specific errors to the corresponding item, making error identification much clearer.
Keywords
SAP S/4HANA Cloud Public Edition, Public Cloud, Sales Order API, API_SALES_ORDER_SRV, OData V2 API, OData V4 API, Sales Order Item Error, Missing API Feature , KBA , SD-SLS-API-2CL , API (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition 2402