SAP Knowledge Base Article - Public

3449411 - Sales Order API error messages doesn't contain item info - SAP S/4HANA Cloud Public Edition

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

  1. Call V2 API API_SALES_ORDER_SRV to create a sales order with multiple items.
  2. If errors occur, the API returns them without binding them to specific items.
  3. 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.

API_SALES_ORDER_SRV

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.

CE_SALESORDER_0001

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