Important information about changed processes (from i-effect 3.1.13 onwards)
There are a few changes to the process when using i-effect (from version 3.1.14 onwards).
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 | This is interface data from or for the ZUGFeRD format. | ||||||||||||||||||||||||||
HTNAPPVER | 2.3.2 | ZUGFeRD Version 2.3.2 | ||||||||||||||||||||||||||
HTNAPPFMT | UBL | Data originates from or is intended for the presentation of an XRECHNUNG invoice in Universal Business Language (UBL) format. | ||||||||||||||||||||||||||
HTNPROCESS | Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way. | |||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
MANDANT | 01 | The field can be used to select or mark data records for different organisations. | ||||||||||||||||||||||||||
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 | Data for generating files | ||||||||||||||||||||||||||
HTSTATE | empty = to be processed (HTDIRECT='*OUT') or has been read in and not yet processed (HTDIRECT='*IN') | |||||||||||||||||||||||||||
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 | The folder name of the template to be used to generate a PDF. The folder must be located under /home/ieffect/zugferd/templates. If the field is empty, the template folder matching the mapping is used automatically. 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. If the field is empty, a name is automatically generated according to this pattern: |
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.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.2, EXTENDED profile, for all data records in the interface that have a '01' in the client field:
RUNMAP
MAPID('ZUGFERD_2.3.2_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 and supported versions. The corresponding mappings can be requested if required.
Format | Version | Direction | Mapping |
|---|---|---|---|
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 (EXTENDED/COMFORT) | Alle Versionen | *IN | ZUGFeRD_2.3.3_IN |
ZUGFeRD COMFORT | 2.3.2 | *OUT | ZUGFeRD_2.3.2_COMFORT_OUT |
ZUGFeRD EXTENDED | 2.3.2 | *OUT | ZUGFeRD_2.3.2_EXTENDED_OUT |
ZUGFERD (EXTENDED/COMFORT) | 2.3.2 | *IN | ZUGFeRD_2.3.2_IN |
ZUGFeRD COMFORT | 2.1.1 (2) | *OUT | ZUGFERD_2.3.3_COMFORT_OUT |
ZUGFeRD EXTENDED | 2.1.1 (2) | *OUT | ZUGFERD_2.3.3_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 | 2.1.x | *IN | XRechnung_UBL_2.1.1_IN |
XRECHNUNG UBL | 2.1.1 | *OUT | XRechnung_UBL_2.1.1_OUT |
XRECHNUNG CII | 2.1.x | *IN | XRechnung_CII_2.1.1_IN |
XRECHNUNG CII | 2.1.1 | *OUT | XRechnung_CII_2.1.1_OUT |
(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.
(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.
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')
MAP(*YES '/home/ieffect/data/in/error' '/home/ieffect/data/in/archive')
PARMS((MANDANT 'MANDANT') (CUSTOM1 'CUSTOM1') (CUSTOM2 'CUSTOM2') (CUSTOM3 'CUSTOM3'))
With the standardisation of the ZUGeRD and XRECHNUNG interfaces, it is now also possible to "reverse" a conversion. Data imported into the interface can be converted back to its original format by setting HTDIRECT='*OUT' and calling up the corresponding conversion (see above).
Additional mapping parameters
The parameters listed below can also be specified when calling a mapping
Variable | Description |
|---|---|
REPORTPATH | Name of the output path for an xRechnung conversion, in which the generated audit report is stored. If the parameter is not specified, the audit report is stored in the same directory in which the .xml data is processed. |