SAP Knowledge Base Article - Public

3801410 - Business Partner API A_CustomerSalesAreaTax Returns Only One Sales Area Tax Entry in SAP S/4HANA Cloud Public Edition

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

  1. 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.
  2. Alternatively, expand Sales Area Tax via /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Customer('...')?$expand=to_CustomerSalesArea/to_SalesAreaTax.
  3. 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

  1. Open the configuration activity “Assign Sales Organization – Distribution Channel – Plant”.
  2. 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.
  3. Open the configuration activity “Define Plant” and verify the Country/Region maintained for the relevant plants.
  4. Ensure that the combination of Sales Organization, Distribution Channel, and assigned Plants covers all intended tax countries.
  5. 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

Product

SAP S/4HANA Cloud Public Edition all versions