This entry point is called by a few processes associated to the reports (initialization process) using AREPORTM table. This table is used to extract information that can be printed via Crystal Report more easily.
In the context of the entry point :
The ALIMETAT entry point is usually called via the init process's subprogram IMPRIME associated with the report. Theses processes' sources must be inquired (clear description) in order to know the context of the call.
There is always a transaction.
There is no open log file.
This entry point is called at the beginning of subprogram IMPRIME. It can be used to replace a report by another one depending on the current language, for instance.
In the context of the entry point :
The entry point IMPRIME is called at the beginning of the subprogram IMPRIME from the ETAT process.
The arguments passed in this subprogram are:
ETAT report code or requested printing code
FUNCTION function code from which the report is launched (usually GFONCTION)
Other variables that are available:
TYP -> 1=report, 2=requests, 3=SQL requests, =Export, 5=BI report
VAL_ETAT -> Default report name if ETAT corresponds to a printing code
There is no log file opened and no transaction in progress.