Symptom
When creating a sales order using the API Sales Order A2X OData V2 (API_SALES_ORDER_SRV), and including the items and their schedule lines, the field RequestedDeliveryDate on the schedule line is ignored and the system uses the sales order creation date.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Send a POST request to the endpoint: <host>/sap/opu/odata/SAP/API_SALES_ORDER_SRV/A_SalesOrder
Use the following payload:
{
"SalesOrderType": "OR",
"SalesOrganization": "1010",
"DistributionChannel": "10",
"SoldToParty": "10100001",
"to_Item": {
"results": [
{
"SalesOrderItem": "10",
"SalesOrderItemCategory": "TAN",
"Material": "TG11",
"RequestedQuantity": "10",
"RequestedQuantityUnit": "PC",
"to_ScheduleLine": {
"results": [
{
"ScheduleLine": "1",
"ScheduleLineOrderQuantity": "10",
"RequestedDeliveryDate": "2026-04-16T10:00"
}
]
}
}
]
}
}
Cause
The Schedule Line entity can only be created as a single entity. The prerequisite is that the item already exists, so it cannot be created at the same time (same request) as the item.
Resolution
Firstly create the sales order and its items, and then, on a subsequent request, create the schedule line containing the necessary RequestedDeliveryDate.
Payload examples for schedule line creation can be found here: Create Schedule Line for Sales Order Item (Create Single Entity) | SAP Help Portal
Note: deep insert requests cannot be used for schedule line creation.
See Also
Keywords
Item Schedule Line, Schedule Line, schd line, Sales Order (A2X, OData V2), API_SALES_ORDER_SRV, A_SalesOrderScheduleLine, First Date, deep insert requests, single entity, sales order creation, subentity , KBA , SD-SLS-API-2CL , API (Public Cloud) , Problem
SAP Knowledge Base Article - Public