logo

Are you need IT Support Engineer? Free Consultant

SII Tip for Spain #14: Custom BP Tax Number Categories and Error EDOCUMENT_ES_SII004

  • By Sanjay
  • 31/07/2026
  • 59 Views



Introduction

Spanish companies subject to SII sometimes trade with vendors or customers located in countries for which SAP has not yet delivered an official BP tax number category, such as Faroe Islands, North Macedonia, or Kosovo. Sometimes, only some tax categories are missing in the standard, for example in the case of Malta, the category MT0 existed (domestic Maltese VAT numbers) but the maltese domestic Tax ID number (MT1) did not.

The natural workaround is to create a custom category directly in the system (see note 2880427 – How to add missing tax number categories of business partner in SAP S/4HANA Cloud Public Edition) following the naming conventions “9<Country><ID>”, such as 9FO1, 9MK0, or 9QU1.

Franciscohurtado_0-1785499754201.Png

The problem surfaces at invoice posting and SII document creation time. The invoices related to business parters with custom-created BP tax categories, will fail at eDocument creation with error EDOCUMENT_ES_SII004 “Invoice ID is incomplete”.

Issue description

The Spain SII eDocument framework resolves a business partner's tax ID by reading the classic vendor/customer master fields LFA1-STCEG, LFA1-STCD1–STCD5 (or KNA1 equivalents). These fields are only mapped during BP creation from the Business parter Categories  XX0, XX1, XX2…XX5 . When the assigned tax number category falls in the customer namespace (prefix 9), no mapping to XX0, XX1, XX2…XX5  will take place and  the classic fields stay empty in KNA1 or LFA1. The eDocument creation process will raise the error EDOCUMENT_ES_SII004  “Invoice ID is incomplete” since the Tax ID number is key for the invoice ID in SII.

 

Solution

Currently, the only solution for this problem is to request the new Business Partner Tax Number category to SAP via incident (typically via component FI-LOC-CNT-ES).

 

Further Reading

In case of additional questions, you can visit the SII help documentation in the following links:

Disclaimer

This blog post reflects the author's interpretation of Spanish legal requirements and SAP system behavior as of the publication date. It is intended for informational purposes only and does not constitute legal advice. For specific guidance, consult your legal or tax advisor and refer to official SAP documentation.

The links to external sources in this blog may be modified at any time externally by the owner without previous notice.

 





Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat with us on WhatsApp!