SAP Knowledge Base Article - Public

3835019 - How to set DeliveryAddressID on STO items via API_STOCKTRANSPORTORDER (OData V4)

Symptom

You want to know how to update or set Delivery Address / DeliveryAddressID on Stock Transport Orders via OData V4 API.

You notice that the Delivery Address Number maintained in the upload template is not populated in the created STO line item and the expected assignment of the DeliveryAddressID/manual delivery address during STO creation does not occur.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create STO via API_STOCKTRANSPORTORDER.
  2. Enter mandatory STO details, including Company Code, Purchasing Organization, Purchasing Group, Supplying Plant, Receiving Plant, Material, Quantity, and Delivery Address Number / DeliveryAddressID.
  3. Navigate to the relevant STO line item and open Delivery Address details.
  4. Observe that the maintained Delivery Address Number / DeliveryAddressID is not populated.

Cause

The API_STOCKTRANSPORTORDER (OData V4) currently does not expose a writable DeliveryAddressID on item level; only reading the address via the ReadDeliveryAddress function is supported by design.

Resolution

The StockTransportOrderItem entity does not expose a writable DeliveryAddressID property. Hence, any value passed in the payload for this field will not be processed.

This is documented in the SAP Help Portal for the Stock Transport Order (OData V4) service: Stock Transport Order (OData V4) API documentation

According to the SAP product roadmap, full address CRUD capabilities (including the ability to set/update the delivery address) for API_STOCKTRANSPORTORDER are planned for the CE 2702 release (February 2027) and beyond.You can follow the latest updates on this topic via the SAP Community blog post here: Community blog: STOs via API in SAP S/4HANA Cloud Public Edition — limitations and roadmap

Until the planned enhancement is available, the delivery address for the created STO line items can be manually updated after creation using the standard Manage Purchase Orders app (transaction ME22N equivalent) in SAP S/4HANA Cloud Public Edition. 
Unfortunately, there is currently no API-based alternative for setting the delivery address at STO creation time.

If this functionality is critical for your business scenario, we recommend submitting an influence request via the SAP Customer Influence portal (https://influence.sap.com) to help prioritize this enhancement.

See Also

Keywords

API_STOCKTRANSPORTORDER, OData V4, Stock Transport Order, STO, DeliveryAddressID, delivery address, Delivery Address Number, cannot set delivery address, cannot update delivery address, ReadDeliveryAddress, Purchase Order API, manual delivery address, CRUD limitation, S/4HANA Cloud API, Manage Purchase Orders , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions