With i-effect 3.1.19, the following extensions were made to the database interfaces.
Changed fields
|
Table |
Column |
Before |
After |
Remark |
|---|---|---|---|---|
|
ZF23INVHT |
HTGCORDNR |
VARCHAR(35) |
VARCHAR(50) |
Order reference (BT-13) — EN 16931 / XRechnung 3.x allows up to 50 characters |
|
ZF23INVPI |
PIDOIIO |
VARCHAR(35) |
VARCHAR(50) |
Order ID at line level (BT-X-21) — extended to 50 characters like HTGCORDNR (BT-13) |
|
ZF23INVPI |
PIPPPNT |
VARCHAR(255) |
VARCHAR(1000) |
Item name (BT-153) — test invoices contain names with more than 400 characters |
|
ZF23INVPI |
PIPPPSAII |
VARCHAR(35) |
VARCHAR(100) |
Item Seller's identifier (BT-155) |
|
ZF23INVPI |
PIPPPBAII |
VARCHAR(35) |
VARCHAR(100) |
Item Buyer's identifier (BT-156) |
|
ZF23INVPT |
PTPAYINF |
VARCHAR(75) |
VARCHAR(255) |
Payment means text (BT-82) — test invoices contain up to 141 characters |
|
ZF23INVDR |
DRDOLIC |
VARCHAR(50) |
VARCHAR(255) |
Identifier of the referenced document (BT-122) |
|
ZF23INVDR |
DRDFILENA |
VARCHAR(35) |
VARCHAR(255) |
File name of the attachment (BT-125-2) |
|
ZF23INVDP |
DPCCSDN |
VARCHAR(25) |
VARCHAR(100) |
Country subdivision / region of the address (BT-39, BT-54, BT-68, BT-79) |
|
ZF23INVAC |
ACTACBA |
DECIMAL(15,2) |
DECIMAL(15,4) |
Amount of an allowance/charge. Discounts on the gross price (BT-147) have up to 4 decimal places (e.g. 0.6667) and used to be cut to 2 decimal places. The outgoing mappings still output amounts at document level with 2 decimal places. |
|
ZF23INVPI |
PICOLIC |
INTEGER |
VARCHAR(100) |
Line in the contract (BT-X-25). Text, leading zeros are kept (e.g. 000010, which used to become 10) — like the purchase order line (PIDOLIO). The previous value 0 (no reference) becomes an empty text during the update; this also applies to PIDALI, PIGRDLI and PIDNDLI. |
|
ZF23INVPI |
PIDALI |
INTEGER |
VARCHAR(100) |
Line in the despatch advice (BT-X-87). Text, leading zeros are kept. |
|
ZF23INVPI |
PIGRDLI |
INTEGER |
VARCHAR(100) |
Line in the goods receipt (BT-X-90). Text, non-numeric line IDs are possible as well. |
|
ZF23INVPI |
PIDNDLI |
INTEGER |
VARCHAR(100) |
Line in the delivery note (BT-X-93). Text, leading zeros are kept. |
Character set of the text columns: UTF-8 (CCSID 1208)
All text columns (CHAR/VARCHAR) of the ZF23INV* tables were changed from CCSID 273 to CCSID 1208 (UTF-8). This means that all characters permitted in e-invoices are stored, e.g. the euro sign € and the ellipsis „…“, which cannot be represented in CCSID 273 and used to be stored as substitution characters.
This affects all tables ZF23INVAC, ZF23INVAI, ZF23INVAP, ZF23INVBR, ZF23INVDM, ZF23INVDP, ZF23INVDR, ZF23INVHT, ZF23INVID, ZF23INVIDT, ZF23INVIP, ZF23INVPC, ZF23INVPD, ZF23INVPI, ZF23INVPIR, ZF23INVPP, ZF23INVPT, ZF23INVSC, ZF23INVTI, ZF23INVTP, ZF23INVTPC, ZF23INVTPP, ZF23INVTX and ZF23INVUDR. The views on these tables (e.g. ZF23INVACP, ZF23INVDRP, ZF23_COMFORT_*) take over the new column types automatically.
Notes:
-
With CCSID 1208, the column length is counted in bytes. Umlauts and ß take up 2 bytes, the euro sign 3 bytes. The field lengths were chosen so that the official test invoices of ZUGFeRD, XRechnung and PEPPOL fit completely.
-
The incoming mappings no longer truncate texts to the column length. If a value does not fit into the column, processing of the document stops with a message instead of silently truncating the text.
-
Programs that read via SQL automatically receive the data in the character set of the job. Characters that do not exist there (e.g. € in CCSID 273) are replaced by substitution characters. For complete transfer, we recommend a job or field CCSID that contains these characters (e.g. 1141 or 1208).
Renamed columns in ZF23INVIDT
All columns of table ZF23INVIDT now carry the prefix IDT. Until now the column for the type of the tax number was called IDTYPE, like the column in ZF23INVID; when both tables were used in one RPG program (fixed form, without QUALIFIED), the names collided.
|
Table |
Column before |
Column after |
Type |
Description |
|---|---|---|---|---|
|
ZF23INVIDT |
ID |
IDT |
VARCHAR(50) |
Tax number (e.g. BT-31, BT-32, BT-48, BT-63) |
|
ZF23INVIDT |
IDTYPE |
IDTTYPE |
VARCHAR(50) |
Type of the tax number (schemeID, e.g. VA = VAT identifier, FC = tax registration number) |
During the update the existing values are copied completely into the new columns; the old columns are removed only afterwards. The supplied mappings (ZUGFeRD, XRechnung, PEPPOL from 3.1.19) and the Jasper templates for the visual copy already use the new names.
Action required: Your own programs, SQL queries, views and mappings that use ZF23INVIDT.ID or ZF23INVIDT.IDTYPE must be changed to IDT and IDTTYPE. Your own views or logical files over ZF23INVIDT are deleted by Db2 when the old columns are removed and must be recreated with the new column names. Column IDTYPE in ZF23INVID is not affected.
Note for your own programs with native database access (RPG/COBOL)
Due to the length changes, the changed number of decimal places and the change of the line references from INTEGER to VARCHAR, the record format level identifier of the following tables changes:
-
ZF23INVAC (ACTACBA)
-
ZF23INVDP (DPCCSDN)
-
ZF23INVDR (DRDOLIC, DRDFILENA)
-
ZF23INVIDT (ID → IDT, IDTYPE → IDTTYPE)
-
ZF23INVPI (PIPPPNT, PIPPPSAII, PIPPPBAII, PICOLIC, PIDALI, PIGRDLI, PIDNDLI)
-
ZF23INVPT (PTPAYINF)
Your own programs that use these tables with native database access (F specification, record-level access) must be recompiled after the update. Otherwise the call ends with a level check (CPF4131). For all other ZF23INV* tables only the character set changes; the record format level identifier stays the same and no recompilation is required.
New fields in ZF23INVDR
Table ZF23INVDR was extended with the following field:
|
Column |
Type |
Description |
|---|---|---|
|
DRFILEPATH |
VARCHAR(255) |
Path to document attachment |