SAP Knowledge Base Article - Public

2709696 - Batch Number not filled in the SalesOrder API

Symptom

The Batch number is not being populated in Sales documents created via a Sales API.

Environment

  •  Sales and Distrubution (SD)
  •  SAP S/4HANA Cloud Public Edition
  •  SAP S/4HANA Cloud Public Edition 1708 
  •  SAP S/4HANA Cloud Public Edition 1711 
  •  SAP S/4HANA Cloud Public Edition 1802 
  •  SAP S/4HANA Cloud Public Edition 1805 
  •  SAP S/4HANA Cloud Public Edition 1605 
  •  SAP S/4HANA Cloud Public Edition 1608 
  •  SAP S/4HANA Cloud Public Edition 1611 
  •  SAP S/4HANA Cloud Public Edition 1702 
  •  SAP S/4HANA Cloud Public Edition 1705
  •  SAP S/4HANA Cloud Public Edition 1808
  •  SAP S/4HANA Cloud Public Edition 1811
  •  SAP S/4HANA, cloud edition 1503 
  •  SAP S/4HANA, cloud edition 1506 
  •  SAP S/4HANA, cloud edition 1511 
  •  SAP S/4HANA, cloud edition 1603

Reproducing the Issue

  1. Setup sales order creation using API_SALES_ORDER_SRV
  2. The payload includes a value for field Batch (i.e. Batch number)
  3. Execute the API
  4. The sales order is created but no batch entry is filled.

Cause

The batch field was not enabled to be used within the ODATA API services.

Resolution

The documentation and A-View will be corrected to reflect this.

If this functionality is required, a feature/functionality request should be submitted through the proper channels.

Keywords

SWARM_KBA, API_SALES_ORDER_SRV, API_SALES_CONTRACT_SRV, API_SALES_INQUIRY_SRV, API_SALES_ORDER_SRV, API_SALES_ORDER_WITHOUT_CHARGE_SRV, CL_SD_API_SALES_ORDER_DPC_EXT , KBA , SD-SLS-API , API , SD-SLS-API-2CL , API (Public Cloud) , Problem

Product

SAP S/4HANA Cloud 1605 ; SAP S/4HANA Cloud 1608 ; SAP S/4HANA Cloud 1611 ; SAP S/4HANA Cloud 1702 ; SAP S/4HANA Cloud 1705 ; SAP S/4HANA Cloud 1708 ; SAP S/4HANA Cloud 1711 ; SAP S/4HANA Cloud 1802 ; SAP S/4HANA Cloud 1805 ; SAP S/4HANA Cloud 1808 ; SAP S/4HANA Cloud 1811 ; SAP S/4HANA, cloud edition 1503 ; SAP S/4HANA, cloud edition 1506 ; SAP S/4HANA, cloud edition 1511 ; SAP S/4HANA, cloud edition 1603