SAP Knowledge Base Article - Public

3776294 - eDocument Mexico: Foreign Trade Complement Version Mismatch in Generated CFDI

Symptom

When processing a CFDI electronic invoice that includes the Foreign Trade Complement (Complemento de Comercio Exterior) in SAP S/4HANA Cloud Public Edition, the document is rejected by the PAC with the following error:

  • "Value '1.1' of attribute 'Version' of element 'cce20:ComercioExterior' is not valid with respect to the corresponding attribute use. Attribute Version has a fixed value of 2.0."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Create an SD invoice in SAP S/4HANA Cloud Public Edition for Mexico localization.
  2. Initiate the Document Compliance process integrated with EDICOM.
  3. In the eDocument Cockpit, generate the CFDI xml and start stamping (timbrado).
  4. Submit the xml to SAT/EDICOM for validation.
  5. Observe the rejection with: "Attribute Version has a fixed value of 2.0".
  6. Review the xml and note ComercioExterior has Version="1.1" while the namespace is ComercioExterior20.

Cause

The Version attribute in the Foreign Trade Complement XML node is controlled by the configuration field COMEXT_VERSION in SSCUI 103804.

If this value was not updated to 2.0 following the SAT legal change, the system generates a partially updated XML — the namespace references the ComercioExterior20 schema while Version still reads 1.1, causing PAC rejection.

Resolution

  1. In your configuration environment, search for Define Fixed Values and Value Mappings for the Foreign Trade Complement (SSCUI 103804).
  2. Locate the entry for COMEXT_VERSION.
  3. Update the value to 2.0.
  4. Save your entries.
  5. Regenerate and resubmit the CFDI.

See Also

Refer to: Creating Electronic Customer Invoices

Keywords

eDocument, Mexico, CFDI, ComercioExterior, Foreign Trade Complement, Comercio Exterior 2.0, Version 1.1, PAC rejection, EDOINTVERSCUSTV, COMEXT_VERSION, SSCUI 103804, Attribute Version has a fixed value of 2.0 , KBA , CA-GTF-CSC-EDO-MX , Document Compliance Mexico , How To

Product

SAP S/4HANA Cloud Public Edition all versions