Symptom
The error "Value is longer than the maximum permitted length &: "ABC"" is Raised When Replicating Tax Category Type(s) Via Business Partner Webservice API in SAP S/4HANA Cloud Public Edition
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Tax Category Type(s) are being sent from source system to SAP S/4HANA Cloud Public Edition system via Business Partner Webservice API
- The error "Value is longer than the maximum permitted length &: "ABC"" is raised
Cause
The Tax Category Type will be taken from two segments, CountryCode and TaxIdentificationNumberTypeCode as per the example below would return the value for DE0
-<TaxNumber actionCode="04">
<CountryCode>DE</CountryCode>
<TaxIdentificationNumberTypeCode>0</TaxIdentificationNumberTypeCode>
<PartyTaxID schemeID="">1234567</PartyTaxID>
<LONG_PartyTaxID schemeID=""/>
</TaxNumber>
If TaxIdentificationNumberTypeCode segment has 'DE0' as opposed to just '0' then the error will be raised.
Resolution
- Check the CountryCode and TaxIdentificationNumberTypeCode segments of the Payload.
- Once the CountryCode and TaxIdentificationNumberTypeCode segments are amended reprocess the message.
Keywords
S4_PC, , LO-MD-BP, S4HC, S/4HANA, TaxIdentificationNumberTypeCode, CountryCode, Value is longer than the maximum permitted length , KBA , LO-MD-BP , Business Partners , Problem