SAP Knowledge Base Article - Public

3651106 - DeliveryGroup Value Ignored in Sales Order Creation via API_SALES_ORDER_SRV in SAP S/4HANA Cloud Public Edition

Symptom

  • API_SALES_ORDER_SRV ignores the delivery group field during the creation of sales orders, leaving the field blank.
  • The absence of the delivery group prevents the grouping of items into consolidated deliveries.
  • The delivery group field appears as “-” in the item details of the Fiori UI and is missing in VA03 and VA02 transactions.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Use API_SALES_ORDER_SRV to create a sales order with multiple items.
  2. Provide DeliveryGroup = (e.g.,  "1") for each item in the request payload.
  3. Execute the API call in a production environment.
  4. Observe that the sales order is created successfully but the delivery group is not applied. It appears as blank ("–") in:

Cause

This issue occurs when the customer master record for the Sold-To Party is configured with the setting:

  • "Only complete delivery allowed" (Shipping tab in Customer Master under sales area data)

When this flag is active, the system automatically removes the DeliveryGroup value during sales order creation, even if it is explicitly provided in the payload.

This is standard SAP behavior by design in S/4HANA Cloud.

Resolution

To ensure the DeliveryGroup value is retained during order creation:

  1. Go to the Customer Master record for the affected Sold-To Party.
  2. Open the Sales Area Data > Shipping tab.
  3. Uncheck the option: "Only complete delivery allowed".
  4. Save the customer master changes.

After removing this flag, subsequent API calls with DeliveryGroup values will correctly reflect in the created sales orders.

See Also

Refer to: Sales Order Simulation API Overview | SAP Business Accelerator Hub

Keywords

delivery group, API_SALES_ORDER_SRV, sales order creation, SAP S/4HANA Cloud, Fiori UI, customer master data, complete delivery setting, consolidated delivery, missing field, POST request, GET request, production system issue, simulation API, SAP S/4HANA Cloud Public Edition, Only complete delivery allowed. , KBA , SD-SLS-SO-MO-2CL , Make-to-order, assembly order (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions