SAP Knowledge Base Article - Public

3293109 - A_CustomerSalesAreaTax Raises the Error "Tax indicator with key &1 &2 already exists"

Symptom

Try to update the existing Output tax Classification value via the A_CustomerSalesAreaTax entity of the Business Partner OData API API_BUSINESS_PARTNER

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Try to change the existing Output tax Classification value via the A_CustomerSalesAreaTax entity of the Business Partner OData API API_BUSINESS_PARTNER
  2. Use the POST operation
  3. The error "Tax indicator with key &1 &2 already exists" is raised

Cause

The PATCH operation needs to be used for the update scenario

Resolution

  1. The PATCH URL for the xxx entity is available on the API Hub 
    /A_CustomerSalesAreaTax(Customer='{Customer}',SalesOrganization='{SalesOrganization}',DistributionChannel='{DistributionChannel}',Division='{Division}',DepartureCountry='{DepartureCountry}',CustomerTaxCategory='{CustomerTaxCategory}')

  2. The payload would contain the new classification value e.g. if it should be 0 it would look like

    {
    "CustomerTaxClassification": "0"
    }

See Also

API_BUSINESS_PARTNER API Hub Page

Keywords

SAP S/4HANA Cloud, S4_PC, S4_1C, X4BC, S4HC, S/4HC, A_CustomerSalesAreaTax, Tax indicator with key &1 &2 already exists, Tax Classification, Sales Area Tax, API_BUSINESS_PARTNER, CVI_EI 017, CVI_EI017, POST, PATCH,post , KBA , LO-MD-BP-ODT , OData Service for Business Partner , LO-MD-BP , Business Partners , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions