Entry points > Module Supervisor > Standard script ANUCOD 

CHG_INDEX

This entry point is located in the verification section (link controls) before the cancellation of the record. It is used to modify the path key for the records in the verified table.

Context and operating mode

The entry point is called from the ANUCOD process after the AV_VERF_ANU action and before the AP_VERF_ANU action. In the verification phase before the deletion of the record, the tables linked to a table where the deletion is carried out, are open under the [ZLIE] abbreviation. The entry point is located before the For [ZLIE] loop. This entry point is used to modify the path key to optimize the search in high volume tables.

In extreme cases, the user can perform another search and deactivate the standard search on a table by positioning the GPE to 1.

In addition to the variables accessible in the AV_VERF_ANU and AP_VERF_ANU actions, the following variables are particularly useful in this entry point:
- FICHIER contains the name of the table open under the ZLIE abbreviation
- FICANU contains the name of the table where the cancellation is taking place
- NBZ contains the name of the linked areas
- ZONE contains the name of the link fields.

The open tables are referenced in the object description or in the OUVRE (open) action.