SAP Knowledge Base Article - Public

3833405 - UoM conversion with operation CreateBatchSplitItem does not auto-derive UoM conversion for batch split in SAP S/4HANA Cloud Public Edition

Symptom

When calling CreateBatchSplitItem operation of API API_OUTBOUND_DELIVERY_SRV, with DeliveryQuantityUnit, ActualDeliveryQuantity, and PickQuantityInSalesUOM, the API does not apply the material/batch conversion factor as the manual batch split in the Change Outbound Delivery app (VL02N).

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

    1) Send a POST request via API_OUTBOUND_DELIVERY_SRV;v=0002 using the CreateBatchSplitItem operation, including DeliveryDocument, DeliveryDocumentItem, Batch, DeliveryQuantityUnit, ActualDeliveryQuantity, and PickQuantityInSalesUOM.

    2) Observe that the API does not derive the sales/base quantity via conversion; it expects the passed quantities to be consistent with the DeliveryQuantityUnit.

    Cause

    CreateBatchSplitItem is working as designed. It does not perform automatic UoM conversion; it expects quantities provided in the request to be correct and mutually consistent in the specified DeliveryQuantityUnit.

    Resolution

    If you must use CreateBatchSplitItem operation:

    1. Pre-calculate the required quantity conversion externally (for example, from base unit to sales unit or vice versa).
    2.  Provide ActualDeliveryQuantity and PickQuantityInSalesUOM that are already mutually consistent in the DeliveryQuantityUnit you pass.

    Alternatively, use operation PickAndBatchSplitOneItem.

    1. Call PickAndBatchSplitOneItem instead of CreateBatchSplitItem.
    2. Provide SplitQuantityUnit (for example, base unit such as KG) and set SplitQuantity accordingly.
    3. The API will convert quantities to the delivery’s sales unit of measure automatically.

    See Also

    For more information on the operations in the API API_OUTBOUND_DELIVERY_SRV, please refer to: API_OUTBOUND_DELIVERY_SRV

    Keywords

    CreateBatchSplitItem, API_OUTBOUND_DELIVERY_SRV, batch split, unit of measure, UoM conversion, sales unit, base unit, KG, LB, outbound delivery, delivery processing, PickAndBatchSplitOneItem, quantity conversion, OData, function import , KBA , LE-SHP-DL-2CL , Delivery Processing (Public Cloud) , Problem

    Product

    SAP S/4HANA Cloud Public Edition all versions