Entry points > Module Supervisor > Standard script APNFCT 

UPDFCT: Allowing changes in functional authorizations

UPDFCT entry point is used to modify the authorizations of the functions attached to a menu profile.

Context and operating method

The entry point is located within the transaction and at the end of the updating transaction of table AFCTPRF, which contains the function rights on the current profile.
Function APNFCT is triggered on the button of the OAPM window and, consequently, all the screens within said window are available.
Field [M]PROFIL contains the current profile code.
Tables AFCTFCT AFCTPRF AFCTFCY AFONCTION AMENUSER FACILITY and FACGROUP are open.
After the entry point, if variable GOK<1, a rollback is carried out. Otherwise, the transaction is committed and table AFCTFCY will be updated according to table AFCTPRF.