Script SWIQRCLIB3 : address line determination in Swiss QR code generation
SWIADDIND: entry point to change the address line index for QR code generation
The SWIADDIND entry point is used to change the address line index of the "Creditor" and the "Ultimate debtor" address in the QR code.
Context and operating mode
In the context of the entry point :
- There is a current transaction
- No trace file is open
Call context
The SWIADDIND entry point is called twice during the creation of the QR code data. First for the "Creditor" address from the site.
Second for the "Ultimate debtor" address from the paying BP.
There is a transaction in progress.
There is no open log file.
Available variables and masks
The following variable is available and can be changed:
ADDIND: address line index to be used from [F:BPA] record. Default is 0 (first address line). Possible values are 0, 1 or 2. If an invalid index is returned it will automatically be reset to the default 0.
The following tables are available:
BPADDRESS [BPA]: address record
BEFWRISWIQRC: entry point to modify the data for QR code generation
The BEFWRISWIQRC entry point is used to change the data used for the QR code generation.
Context and operating mode
In the context of the entry point :
- There is a current transaction
- No trace file is open
Call context
The BEFWRISWIQRC entry point is called during the creation or updating data for the QR code generation just before creating or updating the SWIQRC file.
There is a transaction in progress.
There is no open log file.
The following tables are available:
FACILITY [FCY]: SitesSWIQRC [SWIQRC]: Swiss QR data
BPADDRESS [BPA]: address record
BANK [BAN]: Bank accounts