MODIFY SCREEN.
Changes the attributes belonging to the current screen field whilst processing with LOOP AT SCREEN ... ENDLOOP.
The attributes of all fields of a screen are stored in the system table
SCREEN. This can be edited line by line using LOOP AT
SCREEN ... ENDLOOP. Changes to the properties of the attributes of the current screen field
(= current line in the system table SCREEN) can be put into effect using MODIFY SCREEN.
This statement should be used only within a LOOP AT SCREEN ... ENDLOOP loop at PBO time as part of the process logic of a screen.
... FROM wa
The properties modified are not taken from the header line of the system table
SCREEN but from the explicitly specified work area wa.
The explicitly specified work area wa must have the same structure as the header line of the system table SCREEN.
LOOP AT SCREEN... ENDLOOP, MODIFY itab
Setting Attributes Dynamically