Symptom
Using the API Sales Order (A2X, V2) to retrieve the address for a sales order resulted in the error "Resource not found for segment 'A_SalesOrderPartnerAddressType'".
Environment
SAP S/4HANA Cloud Public Edition
Cause
The Address entity of the Sales Order (A2X, V2) has a limitation: it can only read addresses from documents, not from master data.
Resolution
Here is a workaround: Use this API to read existing system data by either retrieving all document data or including specific entity properties in the request to retrieve only those.
See Also
- Help Portal - Header Partner Address
- Read (GET)
Note that you cannot use this API to read addresses that are determined from master data.
If you want to use this API to read data that already exists in the system, you can either retrieve all the data for the document or include any of the properties of this entity in your request to retrieve only those.
- Read (GET)
- Refer to the following KBA to determine whether a partner address is master data or a document address.
Keywords
SAP S/4HANA Cloud Public Edition, API, Sales order (A2X, V2), API_SALES_ORDER_SRV, A2X, V2, A_SalesOrderPartnerAddressType, Resource not found for segment 'A_SalesOrderPartnerAddressType', Retrieve, Document address, Master data address, Address, Workaround , KBA , SD-SLS-API-2CL , API (Public Cloud) , SD-BF-PD-2CL , Partner Determination (Public Cloud) , Problem
SAP Knowledge Base Article - Public