Symptom
When a sales order is created via one of the Sales Order APIs, one partner function is not determined from the other partner function master data. For example, partner function EB (End Customer) is maintained in WE (Ship-to Party) master data, according to the partner determination setup, EB should be determined from WE.
When creating sales orders via apps, e.g. Create Sales Orders (VA01), this determination works as expected, however when using one of the bellow sales APIs, this determination doesn't occur:
- Sales Order (A2X, OData V2) - API_SALES_ORDER_SRV
- Sales Order (A2X, OData V4) - API_SALESORDER
- Sales Order (A2A) - SalesOrderBulkRequest_In
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
Create a sales order with bellow payload:
{
"SalesOrderType": "OR",
"SoldToParty": "10100001",
"SalesOrganization": "1010",
"DistributionChannel": "10",
"OrganizationDivision": "00",
"PurchaseOrderByCustomer": "KBA TEST",
"RequestedDeliveryDate": "2026-05-08",
"_Partner": [
{ "PartnerFunction": "WE", "Customer": "10100002" }
],
"_Item": [
{
"Product": "TG11",
"RequestedQuantity": "2",
"RequestedQuantityISOUnit": "CT",
}
]
}
Cause
Partner determination procedures are not run when creating sales orders via the API. This is a missing functionality.
Resolution
It's advised to include all required partner functions explicitly in the API payload.
It's comprehensible how the possibility of automatically determining partners in sales orders created from API would be of great use for business, so please consider creating a feature request for this business requirement. This will inform the responsible developers as to what additional functionality should be considered for future releases.
See Also
Keywords
api_salesorder, api_sales_order_srv, odata v4, a2x, sales order api, partner determination, partner function EB, end customer, ship-to party, partner from ship-to, missing partner, _Partner collection, sales document header partners, so02, automatic partner not run , KBA , SD-SLS-API-2CL , API (Public Cloud) , Problem
SAP Knowledge Base Article - Public