SAP Knowledge Base Article - Public

3371411 - Cannot create Supplier Invoice via Webservice

Symptom

You are trying to upload a supplier invoice via Webservice and you encounter following error:

"The detailed error description may not be available in logon language: Value is longer than the maximum permitted length 4: "YYYYYYYYY_123" (where YYYYYYYYY_123 is the customised PDI solution you are using to send tax codes).

Environment

SAP Business ByDesign 

Reproducing the Issue

  1. Go to the Application & User Management work center.
  2. Go to the Service Explorer view.
  3. Search and download the WSDL file "ManageSupplierInvoiceIn" in SOAPUI.
  4. Create a Supplier Invoices with a ProductTaxationCharacteristicsCode value equal to "YYYYYYY_123". 
  • Error occurs: "The detailed error description may not be available in logon language: Value is longer than the maximum permitted length 4: "YYYYYYYYY_123". 

Cause

This is a technical limitation of the system.

The data for ProductTaxationCharacteristicsCode has the rule that the maximum permitted length is 4 chars.

This field does not support PDI or any tax code with more than 4 chars.

Resolution

If you want to extend the number of valid chars for the tax code, the following workaround is available:

Create a new PDI field on invoice item level.

For example, create a new PDI extension field on the invoice with name: Partner Tax code and include the extension field to supplier invoice web service.

When creating supplier invoice via web service , in the standard field product tax code pass a SAP delivered tax code, but on the partner field pass the PDI created tax code.

On the supplier invoice, create an after modify ABSL script via PDI, which pushes the PDI extension field data to the SAP field . This pushes the value of the field Partner Tax code to the SAP field Product Tax code.

Keywords

error with custom tax code,  value is longer than the maximum permitted length 4, supplier invoice, webservice, ManageSupplierInvoiceIn, ProductTaxationCharacteristicsCode. , KBA , SRD-SRM-SI , Supplier Invoicing , Problem

Product

SAP Business ByDesign 2308