Symptom
When retrieving customer sales area tax data using the Business Partner API, entity A_CustomerSalesAreaTax returns only one sales area tax entry, although multiple entries are maintained for the customer in SAP S/4HANA Cloud Public Edition.
Example read patterns show incomplete results:
- /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesAreaTax?$filter=Customer eq '...' and SalesOrganization eq '...'
- /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesArea(Customer='...',SalesOrganization='...',DistributionChannel='...',Division='...')/to_SalesAreaTax
- /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Customer('...')?$expand=to_CustomerSalesArea/to_SalesAreaTax
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Run a GET request to the endpoint /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_CustomerSalesAreaTax with a filter for a specific customer and sales organization.
- Alternatively, expand Sales Area Tax via /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Customer('...')?$expand=to_CustomerSalesArea/to_SalesAreaTax.
- Observe that only one Sales Area Tax record is returned even though multiple tax countries are expected.
Cause
Missing or incomplete Plant-to-Sales Organization assignments for the relevant Sales Organization and Distribution Channel. Because output tax is maintained for a specific country and only plants from that country are assigned, the API returns tax data only for that country.
Resolution
- Open the configuration activity “Assign Sales Organization – Distribution Channel – Plant”.
- Verify the Plant-to-Sales Organization assignments and add all required plants that correspond to the countries for which Sales Area Tax should be returned.
- Open the configuration activity “Define Plant” and verify the Country/Region maintained for the relevant plants.
- Ensure that the combination of Sales Organization, Distribution Channel, and assigned Plants covers all intended tax countries.
- Retest the API GET calls to confirm that all expected Sales Area Tax entries are returned.
Keywords
API_BUSINESS_PARTNER, A_CustomerSalesAreaTax, Business Partner API, Sales Area Tax, output tax, incomplete response, missing tax countries, OData GET, plant assignment, sales organization, distribution channel, configuration issue, country region, SAP S/4HANA Cloud , KBA , LO-MD-BP-ODT , OData Service for Business Partner , Problem
SAP Knowledge Base Article - Public