CHANGE

Description

This action is called during the code change transaction. At this stage, the table in which the code change is made is open with the abbreviation [CHGT], the principal key (whose name is contained in the CLEPRIM variable) has been assigned with its new value, defined by NCODE (warning, this variable is of the variable type according to the context).

OBJect type

Simple, Grid, Combined

Transaction

Yes

Use

The required additional updates can be carried out and the variable GOK can be used to manage locking problems of the abandoning of the transaction.

The variable [L]OCODE contains the previous value of the key for the record to be modified.
The variable [L]NCODE contains the new value of the key for the record to be modified.
The [L]SUP variable contains the value of the first element of the key when the key is made up of more than one element.

Associated actions

 Home page link

VERF_CHG

 Home page link

CHANGE

 Home page link

AP_CHANGE