i-effect Manual
German English
German English

E-invoices: Important information about changed processes since i-effect 3.1.13

From i-effect 3.1.13, there are a few changes to the process. Later changes are marked with the respective version.

New control fields in the header file

The fields described below in header file ZF23INVHT have been modified and/or added. When reading or writing these fields, please note the following information.

Field

Sample content

Explanation

HTNAPPREF

ZUGFERD
XRECHNUNG
PEPPOL

This is interface data from or for the ZUGFeRD format.
This is interface data from or for the XRECHNUNG format.
This is interface data from or for the PEPPOL BIS billing format.

HTNAPPVER

1.0
2.0
2.1.1
2.2.0
2.3.3
2.4.0
2.5.0
2.5.2
3.0.2
3.0.1
2.3.1
2.2.0
2.1.1
3.0

ZUGFeRD Version 1.0 (incoming only, from i-effect 3.1.19)
ZUGFeRD Version 2.0 (incoming only, from i-effect 3.1.19)
ZUGFeRD Version 2.1.1
ZUGFeRD Version 2.2.0
ZUGFeRD Version 2.3.3
ZUGFeRD Version 2.4.0 (from i-effect 3.1.16)
ZUGFeRD Version 2.5.0 / Factur-X 1.09 (from i-effect 3.1.18)
ZUGFeRD Version 2.5.2 / Factur-X 1.09.2 (from i-effect 3.1.19)
XRECHNUNG Version 3.0.2
XRECHNUNG Version 3.0.1
XRECHNUNG Version 2.3.1
XRECHNUNG Version 2.2.0
XRECHNUNG Version 2.1.1 (also for imported XRECHNUNG 1.2, from i-effect 3.1.19)
PEPPOL Version 3.0

HTNAPPFMT

UBL
CII
BASIC
COMFORT
EXTENDED
XRECHNUNG

Data originates from or is intended for the presentation of an XRECHNUNG or PEPPOL BIS Billing invoice in Universal Business Language (UBL) format.
Data originates from or is intended for the presentation of an XRECHNUNG invoice in CII (Cross Industry Invoice) format.
Data originates from an imported ZUGFeRD invoice in BASIC profile (incoming only).
Data originates from or is intended for the presentation of a ZUGFeRD invoice in COMFORT profile.
Data originates from or is intended for the presentation of a ZUGFeRD invoice in EXTENDED profile.
Data originates from or is intended for the display of a ZUGFeRD invoice in the XRECHNUNG profile.

HTNPROCESS

urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0

Specification identifier (BT-24). On input, the identifier of the imported invoice is taken over unchanged. On output (mappings from i-effect 3.1.19), the mapping writes the matching identifier: for XRECHNUNG, a filled value is only taken over if it matches the version being created (e.g. Extension or CVD), otherwise it is replaced; for ZUGFERD and PEPPOL, the field is not read. With the mappings up to i-effect 3.1.18, a filled value is written without validation; leave the field empty for outgoing invoices there (see section ‘Re-sending or converting imported data’).


Identification

Type

urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0

XRECHNUNG 3.0

urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.3

XRECHNUNG 2.3

urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.2

XRECHNUNG 2.2

urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.1

XRECHNUNG 2.1

urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0

XRECHNUNG 2.0

urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0

XRECHNUNG (Extension)

urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended


ZUGFERD
(Extended Profile)

urn:cen.eu:en16931:2017#conformant#urn:zugferd.de:2p0:extended

ZUGFERD (Extended profile, legacy) (ZUGFeRD 2.0, incoming only; up to i-effect 3.1.18 also output ZUGFERD_2.1.1_EXTENDED_OUT)

urn:cen.eu:en16931:2017#compliant#urn:factur-x.eu:1p0:basic

ZUGFERD (Basic profile) (incoming only)

urn:cen.eu:en16931:2017

ZUGFERD
(Comfort Profile)

urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0

ZUGFERD
(xRechnung Profile)

urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0

PEPPOL



Other values: Further identifiers are only permitted for XRECHNUNG. For XRECHNUNG 3.0 these are:

  • Extension: urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0 (not for UBL credit notes)

  • CVD (Clean Vehicles Directive): urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#compliant#urn:xeinkauf.de:kosit:xrechnung:cvd_0.9

Only in these cases do you fill HTNPROCESS yourself for outgoing invoices. For ZUGFERD (all profiles) and PEPPOL, only the identifier from the table is valid; any field content is ignored there.

HTNBPROCESS

urn:fdc:peppol.eu:2017:poacc:billing:01:1.0

Business process type (BT-23). On input, the value is taken over from the imported invoice. On output:

  • XRECHNUNG (CII, UBL): A filled value is written; if the field is empty, urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 is written.

  • ZUGFERD COMFORT, EXTENDED: The value is only written if the field is filled (no default value).

  • ZUGFERD profile XRECHNUNG and PEPPOL: urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 is always written; the field content is ignored.

Permitted values:

  • XRECHNUNG: mandatory, any value. If the field is empty, the mapping sets the default value.

  • ZUGFERD COMFORT, EXTENDED: optional, any value.

  • PEPPOL: format urn:fdc:peppol.eu:2017:poacc:billing:NN:1.0, in practice only …billing:01:1.0.

Leave the field empty for outgoing invoices unless the invoice recipient requires a specific value.

MANDANT

01

The field can be used to select or mark data records for different organisations.
When processing incoming files, the content to be written to the field can be specified via the PARMS((MANDANT ‘01’)) parameter.
When processing output data, only data records that correspond to the specified value in the transferred variable MANDANT are selected. If the parameter is omitted, all data records are selected.

CUSTOM1

DE

A field that can be assigned its own value when a message is received by specifying PARMS( (CUSTOM1 'DE')).

CUSTOM2

01735

A field that can be assigned its own value when a message is received by specifying PARMS( (CUSTOM2 '01735')).

CUSTOM3

A

A field that can be assigned its own value when a message is received by specifying PARMS( (CUSTOM3 'A')).

HTDIRECT

*OUT
*IN

Data for generating files
Imported data

HTSTATE


empty = to be processed (HTDIRECT='*OUT') or has been read in and not yet processed (HTDIRECT='*IN')
1 = successfully processed
2 = processing error

EXTERNAL_ORIGINATOR


Name of a different sender identification defined in the master data of i-effect and to be used for sending this data. See Send ZUGFeRD or xRechnung invoices with SNDFILE

EXTERNAL_RECIPIENT


Name of a different recipient identification defined in the master data of i-effect and to be used for sending this data. See Send ZUGFeRD or xRechnung invoices with SNDFILE

PDF template and existing PDF files

It is possible to create a PDF, which is combined with the generated XML during mapping, using a template or to use an existing PDF file for the ZUGFeRD PDF. Which method is chosen depends on the content of the database fields HTTEMPLDIR and HTPDF:

Field

Contents

Function

HTTEMPLDIR

extended
comfort

The folder name of a Jasper template under /home/ieffect/zugferd/templates to be used to generate the PDF. Deprecated: As of i-effect 3.1.19, the PDF is only generated from a template if this field is filled. If it is empty, the PDF is generated from the created XML. Template-based generation will be removed in i-effect 3.1.20.

This parameter is used to access your own templates in a separate folder.

HTPDF

/home/ieffect/pdf/zugferd.pdf

zugferd.pdf

The path to an existing PDF file or the name of the PDF to be created.

If a complete path (with a leading / ) is specified, no PDF is created, but an attempt is made to use the specified PDF for combining XML and PDF.

If only a file name (including file extension) is specified, the PDF is created using a template and is given the specified name. The file is created in the output directory specified in the RUNMAP command.

Up to i-effect 3.1.18: If the field is empty, a name is automatically generated according to this pattern:
ZUGFeRD_<COMFORT|EXTENDED>_<DOCUMENT NUMBER>_<UNIQUE>.pdf
In this case, the file is created in the directory specified in the RUNMAP parameter.

From i-effect 3.1.19, the pattern in the note below the table applies.

From i-effect 3.1.19: An existing PDF specified in HTPDF is automatically converted to PDF/A-1b. If HTPDF is empty, the PDF is generated from the created XML file and named according to the pattern ZUGFERD-INVOIC_<document number>_<timestamp>.pdf. See Creating ZUGFeRD files: file names, parameters and PDF/A (from i-effect 3.1.19).

Deprecated as of i-effect 3.1.19: Generating the PDF via Jasper templates (field HTTEMPLDIR) will be removed in i-effect 3.1.20, together with the templates shipped with i-effect. Until then: HTPDF filled → the given PDF is used. HTPDF empty and HTTEMPLDIR filled → the PDF is generated from the template. HTPDF and HTTEMPLDIR empty → the PDF is generated from the XML.

Please leave HTTEMPLDIR empty from now on, or pass your own PDF in HTPDF.


Standardised call parameters for generating e-invoices

  • The special value %FILENAME% is now used for both XRechnungen and ZUGFeRD documents in the call to trigger the automatic generation of unique file names.

  • The names of the mappings have been standardised and the mappings adapted to the new database structure.

When using version 3.1.13 of i-effect, the appropriate mappings must be requested and imported. They are not included in the scope of delivery of i-effect.

Example:

To create invoices in ZUGFeRD format, version 2.5.0, EXTENDED profile, for all data records in the interface that have a '01' in the client field:

RUNMAP
  MAPID('ZUGFERD_2.5.0_EXTENDED_OUT')
  FS(*NONE)
  TOPATH('/home/ieffect/data/out/%FILENAME%')
  ERRPATH('/home/ieffect/data/out/error')
  ARCPATH('/home/ieffect/data/out/archive')
  PARMS((MANDANT '01'))

To create invoices in ZUGFeRD format, version 2.3.3, EXTENDED profile, for all data records in the interface that have a '01' in the client field:

RUNMAP 
  MAPID('ZUGFERD_2.3.3_EXTENDED_OUT') 
  FS(*NONE)
  TOPATH('/home/ieffect/data/out/%FILENAME%') 
  ERRPATH('/home/ieffect/data/out/error') 
  ARCPATH('/home/ieffect/data/out/archive') 
  PARMS((MANDANT '01'))

To create invoices in ZUGFeRD format, version 2.3.3, COMFORT profile, for all data records in the interface that have a '01' in the client field:

RUNMAP 
  MAPID('ZUGFERD_2.3.3_COMFORT_OUT') 
  FS(*NONE)
  TOPATH('/home/ieffect/data/out/%FILENAME%') 
  ERRPATH('/home/ieffect/data/out/error') 
  ARCPATH('/home/ieffect/data/out/archive') 
  PARMS((MANDANT '01'))

To create invoices in XRECHNUNG format, version 3.0.2, format CII, for all data records in the interface that have a '01' in the client field:

RUNMAP 
  MAPID('XRECHNUNG_CII_3.0.2_OUT') 
  FS(*NONE)
  TOPATH('/home/ieffect/data/out/%FILENAME%') 
  ERRPATH('/home/ieffect/data/out/error') 
  ARCPATH('/home/ieffect/data/out/archive') 
  PARMS((MANDANT '01'))

To create invoices in XRECHNUNG format, version 3.0.2, UBL format, for all data records in the interface that have a '01' in the client field:

RUNMAP 
  MAPID('XRECHNUNG_UBL_3.0.2_OUT') 
  FS(*NONE)
  TOPATH('/home/ieffect/data/out/%FILENAME%') 
  ERRPATH('/home/ieffect/data/out/error') 
  ARCPATH('/home/ieffect/data/out/archive') 
  PARMS((MANDANT '01'))

Available versions and mappings

The following list shows all currently available versions and mappings for the supported formats PEPPOL, ZUGFeRD and XRECHNUNG.

The mappings are not included in the standard scope of delivery of i-effect, but can be requested if required.

Format

Version

Direction

Mapping

ZUGFeRD COMFORT

2.5.2(5)

*OUT

ZUGFERD_2.5.2_COMFORT_OUT

ZUGFeRD EXTENDED

2.5.2(5)

*OUT

ZUGFERD_2.5.2_EXTENDED_OUT

ZUGFeRD XRECHNUNG

2.5.2(5)

*OUT

ZUGFERD_2.5.2_XRECHNUNG_OUT

ZUGFERD (all profiles)

from 2.1(5)

*IN

ZUGFERD_2.5.2_IN

ZUGFERD (all profiles)

2.0(5)

*IN

ZUGFERD_2.0_IN

ZUGFERD (all profiles)

1.0(5)

*IN

ZUGFERD_1.0_IN





ZUGFeRD COMFORT

2.5.0(3)

*OUT

ZUGFERD_2.5.0_COMFORT_OUT

ZUGFeRD EXTENDED

2.5.0(3)

*OUT

ZUGFERD_2.5.0_EXTENDED_OUT

ZUGFeRD XRECHNUNG

2.5.0(3)

*OUT

ZUGFERD_2.5.0_XRECHNUNG_OUT





ZUGFeRD COMFORT

2.4.0(4)

*OUT

ZUGFERD_2.4.0_COMFORT_OUT

ZUGFeRD EXTENDED

2.4.0(4)

*OUT

ZUGFERD_2.4.0_EXTENDED_OUT

ZUGFeRD XRECHNUNG

2.4.0(4)

*OUT

ZUGFERD_2.4.0_XRECHNUNG_OUT





ZUGFeRD COMFORT

2.3.3(1)

*OUT

ZUGFERD_2.3.3_COMFORT_OUT

ZUGFeRD EXTENDED

2.3.3(1)

*OUT

ZUGFERD_2.3.3_EXTENDED_OUT

ZUGFeRD XRECHNUNG

2.3.3

*OUT

ZUGFERD_2.3.3_XRECHNUNG_OUT





ZUGFeRD COMFORT

2.2.0

*OUT

ZUGFERD_2.2.0_COMFORT_OUT

ZUGFeRD EXTENDED

2.2.0

*OUT

ZUGFERD_2.2.0_EXTENDED_OUT





ZUGFeRD COMFORT

2.1.1(2)

*OUT

ZUGFERD_2.1.1_COMFORT_OUT

ZUGFeRD EXTENDED

2.1.1(2)

*OUT

ZUGFERD_2.1.1_EXTENDED_OUT





XRECHNUNG UBL

3.0.x

*IN

XRECHNUNG_UBL_3.0.2_IN

XRECHNUNG UBL

3.0.2

*OUT

XRECHNUNG_UBL_3.0.2_OUT

XRECHNUNG CII

3.0.x

*IN

XRECHNUNG_CII_3.0.2_IN

XRECHNUNG CII

3.0.2

*OUT

XRECHNUNG_CII_3.0.2_OUT





XRECHNUNG UBL

2.3.x

*IN

XRECHNUNG_UBL_2.3.1_IN

XRECHNUNG UBL

2.3.1

*OUT

XRECHNUNG_UBL_2.3.1_OUT

XRECHNUNG CII

2.3.x

*IN

XRECHNUNG_CII_2.3.1_IN

XRECHNUNG CII

2.3.1

*OUT

XRECHNUNG_CII_2.3.1_OUT





XRECHNUNG UBL

2.2.x

*IN

XRECHNUNG_UBL_2.2.0_IN

XRECHNUNG UBL

2.2.0

*OUT

XRECHNUNG_UBL_2.2.0_OUT

XRECHNUNG CII

2.2.x

*IN

XRECHNUNG_CII_2.2.0_IN

XRECHNUNG CII

2.2.0

*OUT

XRECHNUNG_CII_2.2.0_OUT





XRECHNUNG UBL

1.2, 2.1.x(6)

*IN

XRECHNUNG_UBL_2.1.1_IN

XRECHNUNG UBL

2.1.1

*OUT

XRECHNUNG_UBL_2.1.1_OUT

XRECHNUNG CII

1.2, 2.1.x(6)

*IN

XRECHNUNG_CII_2.1.1_IN

XRECHNUNG CII

2.1.1

*OUT

XRECHNUNG_CII_2.1.1_OUT





PEPPOL UBL INVOICE

3.0

*IN

PEPPOL_UBL_INVOICE_3.0_IN

PEPPOL UBL INVOICE

3.0

*OUT

PEPPOL_UBL_INVOICE_3.0_OUT

PEPPOL UBL CREDIT NOTE

3.0

*IN

PEPPOL_UBL_CREDITNOTE_3.0_IN

PEPPOL UBL CREDIT NOTE

3.0

*OUT

PEPPOL_UBL_CREDITNOTE_3.0_OUT

info (1) The ZUGFeRD mappings ZUGFERD_2.3.3_COMFORT_OUT and ZUGFERD_2.3.3_EXTENDED_OUT generate ZUGFeRD PDF files that are compatible with ZUGFeRD 2.2.x and 2.3.x.

info (2) The ZUGFeRD mappings ZUGFERD_2.1.1_COMFORT_OUT and ZUGFERD_2.1.1_EXTENDED_OUT generate ZUGFeRD PDF files that are compatible with ZUGFeRD 2.0.x and 2.1.x.

info (3) The ZUGFeRD 2.5.0 mappings require i-effect 3.1.18 and generate ZUGFeRD 2.5 / Factur-X 1.09 files.

info (4) The ZUGFeRD 2.4.0 mappings require i-effect 3.1.16.

info (5) The ZUGFeRD 2.5.2 mappings and the incoming mappings ZUGFERD_2.0_IN and ZUGFERD_1.0_IN require i-effect 3.1.19. The outgoing mappings generate ZUGFeRD 2.5.2 / Factur-X 1.09.2 files. PRCEINVOIC automatically assigns incoming ZUGFeRD invoices to the matching incoming mapping based on the XML schema: ZUGFERD_2.5.2_IN for ZUGFeRD from version 2.1 and Factur-X, ZUGFERD_2.0_IN for ZUGFeRD 2.0 and ZUGFERD_1.0_IN for ZUGFeRD 1.0.

info (6) Incoming XRECHNUNG 1.2 files used to be rejected. From i-effect 3.1.19 they are imported with the XRECHNUNG 2.1.1 mappings (HTNAPPVER = 2.1.1).

Simplified process for processing incoming e-invoices

With the new PRCEINVOIC processing command, all incoming e-invoice formats and versions can be processed automatically.
The format is recognised automatically and XML data is extracted from ZUGFeRD data. If desired, XRECHNUNGEN can be visualised and the recognised XML data can be imported into the i-effect interfaces.

PRCEINVOIC 
  FRMIFSFILE('%IFSPATH%/%IFSFILE%')
  ERRORPATH('/home/ieffect/data/in/error')
  VISUALIZE('/home/ieffect/data/in/docs')
  AUDIT('/home/ieffect/data/in/audit')
  MAP(*YES '/home/ieffect/data/in/error' '/home/ieffect/data/in/archive') 
  PARMS((MANDANT 'MANDANT') (CUSTOM1 'CUSTOM1') (CUSTOM2 'CUSTOM2') (CUSTOM3 'CUSTOM3'))

Audit report for incoming e-invoices (from i-effect 3.1.19)

Use the AUDIT parameter to specify an IFS path. The default is *NONE. If a path is specified, PRCEINVOIC validates the incoming e-invoice against the official rules (KoSIT validator) before mapping. The audit report is stored as a PDF named <name of the input file without extension>_audit.pdf in the specified directory. If the file already exists, the name is made unique.

The validation is for information only: the invoice is always processed further, even if it is invalid. The result is logged in the session:

Message

Meaning

Severity

IEF0815

The invoice is valid.

00

IEF0818

The invoice is only valid according to an older version (see below).

10

IEF0816

The invoice is not valid. The session ends with a diagnosis; the file is processed anyway.

30

IEF0819

The audit report was created.

00

IEF0817

The audit report could not be created. The cause is shown in the preceding messages.

30

The first-level texts only show the file name. The second-level text shows the full path and the rule set used. There is no longer a size limit for the validation; invoices over 10 MB (e.g. with embedded attachments) are validated as well.

Older ZUGFeRD and XRECHNUNG versions (from i-effect 3.1.19)

ZUGFeRD 2.0, 2.1 and 2.5.2 use the same identifier (GuidelineID). PRCEINVOIC therefore checks the file against the schemas of the possible incoming mappings and uses the first one that matches. Incoming ZUGFeRD 1.0 and 2.0 files are thus imported with ZUGFERD_1.0_IN and ZUGFERD_2.0_IN, XRECHNUNG 1.2 files with the XRECHNUNG 2.1.1 mappings.

Message

Meaning

IEF0812

The schema matches, the mapping was selected.

IEF0813

No preferred schema matches, a fallback mapping was used.

IEF0814

The schema check failed technically (severity 40).

During validation (audit report), XRECHNUNG 1.2 and 2.0 are checked against the matching historical KoSIT rules. If a ZUGFeRD invoice fails the current rules, it is additionally checked against ZUGFeRD 2.1.1. If it passes there, the result is “only valid according to ZUGFeRD 2.1.1” (IEF0818). The deviations from the current rules are listed as notes in the audit report.

Re-sending or converting imported data

With the standardisation of the ZUGFeRD and XRECHNUNG interfaces, it is possible to "reverse" a conversion: data imported into the interface can be converted back to its original format, or output in a different format or version, by setting HTDIRECT='*OUT' and calling the corresponding conversion (see above).

Important: On input, the specification identifier (BT-24) is stored in HTNPROCESS and the business process type (BT-23) in HTNBPROCESS.

  • HTNPROCESS no longer needs to be cleared with the mappings from i-effect 3.1.19: XRECHNUNG only takes over the identifier if it matches the version being created, otherwise the identifier of that version is written. ZUGFERD and PEPPOL do not read the field.

  • HTNBPROCESS is still written unchanged for XRECHNUNG and for ZUGFERD COMFORT/EXTENDED. Clear the field if the imported value does not fit the new invoice; if the field is empty, XRECHNUNG sets urn:fdc:peppol.eu:2017:poacc:billing:01:1.0.

Mappings up to i-effect 3.1.18: The outgoing mappings write both fields unchanged and without validation. Clear HTNPROCESS and HTNBPROCESS there before you output the data in a different format, profile or version, e.g.:

SQL
UPDATE IEFFECTDB.ZF23INVHT SET HTNPROCESS = '', HTNBPROCESS = '' WHERE HTKEY = '…'

The mappings treat an empty string and NULL alike as empty. If the fields are empty, the mapping sets the matching identifier. Otherwise, for example, an imported XRechnung 2.3 is turned into an XRechnung 3.0 with the identifier …xrechnung_2.3, and the KoSIT validator rejects it with “unknown document type”.

Additional mapping parameters

The additional mapping parameters for file names and output paths (PDFPATH, PDFFILE, AUDITPATH, AUDITFILE, HTPDFFILE) are described on the page Creating ZUGFeRD files: file names, parameters and PDF/A (from i-effect 3.1.19).