SAP Knowledge Base Article - Public

2791195 - Error "Tax code not configured for country" When Updating a Sales Order with ManageSalesOrderIn

Symptom

When updating the Tax Country for Item XX on a Sales Order ABC via web service (ManageSalesOrderIn). The response displays the error message "Tax code not configured for country DEF".

ABC represents the sales order ID

XX represents the line item ID
DEF represents the Tax Country

Environment

SAP Business ByDesign

Reproducing the Issue

  1. Execute the web service request.
  2. Go to the Sales Order work center.
  3. Open the Sales Order view.
  4. Filter for All Orders.
  5. Search for Sales Order ABC.
  6. Navigate to the Items tab, select Items XX.
  7. Go to the Taxes subtab.

The error message "Item XX has Tax Country MNO but you expect Tax Country ABC" is displayed (MNO is the original Tax Country of the Sales Order).

Cause

Tag  <TaxationCharacteristicsCode listID="YY">Tax Code</TaxationCharacteristicsCode> is not placed within the right tag.

YY is the Tax Country Code, ex: GB for Great Britain.

Resolution

Make sure tag  <TaxationCharacteristicsCode listID="YY">Tax Code</TaxationCharacteristicsCode> is within  tag <PriceAndTaxCalculationItem>:

 <Item>
    <ID>XX</ID>
       <PriceAndTaxCalculationItem itemProductTaxDetailsListCompleteTransmissionIndicator="true">
        <TaxationCharacteristicsCode listID="YY">Tax Code</TaxationCharacteristicsCode>
            <ItemProductTaxDetails>
               <TransactionCurrencyProductTax>
                  <CountryCode>YY</CountryCode>
                  <EventTypeCode listID="YY">Tax Code</EventTypeCode>
                  <TypeCode listID="YY">1</TypeCode>
                  <RateTypeCode listID="YY1||2|1">1</RateTypeCode>
                  <CurrencyCode>CURRENCY</CurrencyCode>
                  <BaseAmount currencyCode="CURRENCY">11.22</BaseAmount>
                  <Percent> PERCENTAGE VALUE</Percent>
                  <BaseQuantity unitCode="EA">1.0</BaseQuantity>
                  <BaseQuantityTypeCode>EA</BaseQuantityTypeCode>
                  <Rate>
                     <DecimalValue>VALUE</DecimalValue>
                  </Rate>
                </TransactionCurrencyProductTax>
            </ItemProductTaxDetails>
        </PriceAndTaxCalculationItem>
</Item>

Keywords

web service, tag, tax code, tax country, tax region, sales order , KBA , AP-SLO-SO , Sales Order , How To

Product

SAP Business ByDesign all versions