Process CFGLIBB: CFGLIBB
INISCE: Starting script execution
This entry point is called in the "INIT" action for the execution of a script.
Context and operating mode
Transaction
There is no transaction in process.
Log file
A log file may be open according to the value of the system variable S_TRAFLG that can set in a script.
Different call cases
Call at the end of the ‘INIT_CFGSCE’ section: the name of the ‘box’ is loaded with the value WUXsssss (sssss = script)
The global variables that title the fields are initialized (variable T_)
The grid for the W_VARLAB variables is created.
Available variables and masks
Variable or mask |
Definition |
Char BOITE |
Name of the screen is not displayed |
Char(20) T_sss |
Titles of screen fields (sss = name of symbol) |
Open tables
All the tables required for the configuration are open.
CFGITMREF: Reference modification
This entry point serves to dynamically modify the reference defined in a script.
Context and operating mode
Transaction
If there is no transaction in process if the variable S_UPDMOD <> 2.
There is a transaction in process if the variable S_UPDMOD = 2.
Log file
A log file may be open according to the value of the system variable S_TRAFLG that can set in a script.
Different call cases
This entry point is called in the execution of the script when there is a requirement to read the reference.
Available variables and masks
Variable or mask |
Definition |
Char (20) W_ITM |
Contains the reference for the script The reference that must be use the configurator (the product must exist) is loaded in W_ITM.
|
Open tables
All the tables required for the configuration are open.
CFGCPNREF: Reference component modification
This entry point serves to dynamically modify the reference component defined in a script.
Context and operating mode
Transaction
If there is no transaction in process if the variable S_UPDMOD <> 2.
There is a transaction in process if the variable S_UPDMOD = 2.
Log file
A log file may be open according to the value of the system variable S_TRAFLG that can set in a script.
Different call cases
This entry point is called in the execution of the script when there is a requirement to read the reference component.
Available variables and masks
Variable or mask |
Definition |
Table [F :CSL] |
Script line component concerned record |
|
|
Char (GLONITM) W_ITM |
Contains the reference component for the script The reference component that must be use the configurator (the product must exist) is loaded in W_ITM.
|
Open tables
All the tables required for the configuration are open.
CFG_AAAA: Generic entry point for configurator actions
This entry point is called for each action of the type 'table selection', 'list selection', 'window selection' or 'standard process' managed by the CFGLIBB process. (AAAA = Action)
It is used to carryout a process before the standard action and/or to not carryout the standard action.
Context and operating mode
This entry point is called for the following actions managed by the CFGLIBB process.
Standard process SAICFGSCE : Script response entry
SAICFGSEL : Product selection / variant options entry
SAICFGSHA : Shapes and patterns entry
Window entry SELCFG : Script selection using a master script
Available variables and masks
Variable or mask |
Definition |
GPOINT |
Contains ‘CFG_’ followed by an action code (INIT,OUVRE…). |
GACTION |
Contains the name of the action (SAICFGSCE, SAICFGSEL…) |
GPE |
Loaded with zero: the standard action is carried out Loaded <> zero:the standard action is not carried out |
Open tables
All the tables of the configurator.
TRT_SYMBOLE_FIC: Loads the File type symbols
This entry point is called for each "file" type symbol.
It is used to carryout a process before the standard action and/or to not carryout the standard action.
Context and operating mode
Transaction
If there is no transaction in process if the variable S_UPDMOD <> 2.
There is a transaction in process if the variable S_UPDMOD = 2.
Log file
A log file may be open according to the value of the system variable S_TRAFLG that can set in a script.
Different call cases
This entry point is called in the execution of the script when there is a requirement to read the reference component.
Available variables and masks
Variable or mask |
Definition |
Table [F :CSL] |
Script line component concerned record |
|
|
GPE |
Loaded with zero: the standard action is carried out Loaded <> zero:the standard action is not carried out |
Open tables
All the tables required for the configuration are open.
LOA_CSEL: Loading one line of the product selection grid
This entry point is called during the loading of each line of product selections and variant options in the configurator.
Context and operating method
Transaction
There is no transaction in process.
Log file
There may be an open log file (test the context)
Available variables and masks
The GPE variable is initialized to 0. If the specific script changes its value, the loading process of the current line stops ([M:CFW] is not updated).
Variable or mask |
Definition |
Mask WUSxxxx [CSEL] |
Mask generated from the selection xxx |
Table [F:ITM] |
Master product for the selection line concerned |
Table [F:ITF] |
Product-site for the selection line concerned |
Table [F:ITV] |
Product totals for the selection line concerned |
Table [F:ITS] |
Product-sales for the selection line concerned |
Table [F:TCU] |
Currency S_CUR (GLOCALDEV by default) |
Decimal [M :CSEL]CSTTOT |
Total cost pre-calculated in the selections carried out for the selection in process. |
Nolign |
Number of the current line |
S_DYNAMT |
Field of the type 'Cost in currency' that must be displayed. (According to the currency contained in S_CUR pre-loaded by default with the local currency) This field will be revised in configuration mode once the ‘Ok’ button is pressed For immediately display, proceed as follows: Gosub AFF_DYNAMT From CFGLIB |
Open tables
The configurator tables
CTL_ITM_EQUIV: Controls on the equivalent products found
This entry point is called when searching for equivalence in order to filter the equivalent products, for instance, by checking whether the Product - Site record exists or not for the current site.
Context and operating method
Transaction
There is one transaction in progress.
Log file
A log file may be open according to the value of the system variable S_TRAFLG that can set in a script.
Different call cases
Call in the different search scenarios for [F:ITM1]: whether we take the first product found or all the equivalent products to display them as a list on the screen [M:CFEQ].
The action is called from CFGLIBC, where the request on [F:ITM1] is created
Using the GPE indicator
GPE=0 if standard algorithm must continue (initialized to this value by default)
GPE=1 to skip loading the current product [F:ITM1]ITMREF
GPE=2 to exit the read cycle completely
Variable or mask | Definition |
Mask [CFV0] | Summary of the configuration |
Mask [CFV1] | Summary of the configuration |
Mask [CFV2] | Summary of the configuration |
Mask [CFV3] | Summary of the configuration |
Mask [CFV9] | Summary of the configuration |
|
|
Open tables
The tables required for the configuration
Available variables and masks