SAP Knowledge Base Article - Public

2858207 - Error "Value is longer than the maximum permitted length &: "ABC"" is Raised When Replicating Data Via Business Partner Webservice API in SAP S/4HANA Cloud

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

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Tax Category Type(s) are being sent from source system to SAP S/4HANA Cloud system via Business Partner Webservice API
  2. 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

  1. Check the CountryCode and TaxIdentificationNumberTypeCode segments of the Payload.
  2. 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

Product

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