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
- Execute the web service request.
- Go to the Sales Order work center.
- Open the Sales Order view.
- Filter for All Orders.
- Search for Sales Order ABC.
- Navigate to the Items tab, select Items XX.
- 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