Process GENFIC: File generation
OPENFILE: Generation of the receipt/bill files
This entry point is used to take control of opening other tables and loading the receipt/bill files with additional information.
Context and operating mode
Transaction
There is no transaction in process.
Log file
There is an open log file
Different call cases
This entry point is called under the program ENREG from the process GENFIC.
It is used for each record of a GENFIC file line to set a record in a previously opened table.
Available variables and masks
Variables |
Definition |
FACTOR |
Name of the factor |
NUMQUIT |
Receipt/bill number |
CODE |
Name of the bank file |
TYPENR |
Record type (Local menu 656) |
For example : Ordering customer reference, BPCORD field for the SINVOICEV file
If !clalev([F:SIV]) : Local File SINVOICEV [SIV] : Endif
If TYPENR=2 or TYPENR=5 # Information on the Detail line
If [F:SIH]NUM<>[F:SIV]NUM : Read [SIV]SIV = [F:SIH]NUM : Endif
Endif
Under the setup of the bank files ( GESTFB function), it will be possible to reference a SIV field in the bank file QUITTANCE in 'Detail' or 'Detail2'.
Open tables
Tables |
Significant content |
Table Title |
FACTOR [FCT] |
Yes |
Factor |
SINVOICE [SIH] |
Yes except TYPENG=1 |
Invoices |
BPARTNER [BPR] |
Yes except TYPENG=1 |
BP |
BPCUSTOMER [BPC] |
Yes except TYPENG=1 |
Customers |
BPADDRESS [BPA] |
Yes except TYPENG=1 |
Addresses |
BID [BID] |
Yes except TYPENG=1 |
Bank ID no |
FICBAN: Personalization of the directory for the receipt/bill file generation
This entry point is used to personalize the directory for the generation of the receipt/bill file (GDIRBQE variable).
Context and operating method
Transaction
There is no transaction in progress.
Log file
There is a log file.
Different call cases
This entry point is called during the receipt/bill file generation directly from the GENFIC function or following the receipt/bill posting (CPTQUIT function)
Available variables and masks
The variable GDIRBQE is modifiable. Warning, it contains the relative path, that is a sub-directory in the folder (ex : GDIRBQE contains "BQE" for the file generated under /adonix/X3V6/DEMO/BQE).
This variable is saved before the call to the entry point. It is restored after the generation of the file.
The TABFILBAN and FACTOR tables are on line and their contents are significant.
Depending on the call case, either the (GENFIC [DIA]) file generation mask or the (CPTQUIT [DIA]) posting mask is accessible.