LOOP AT SCREEN.
All fields of the current screen are stored in the system table SCREEN
with their attributes.
The LOOP AT SCREEN statement
places this information in the header line of the system table.
If you want to change the attributes,
you must put back the changed header line with
MODIFY SCREEN. However, you can only do this in the
PBO module of a screen.
If you use this statement for step loop processing,
the information (and any changes) apply only to the current steploop line. Outside step loop processing,
the information for a step loop field applies to the complete column.
You can also modify fields
in the loop procerssing of a table view using this loop statement.
Unlike a step loop, modifications before the loop have no effect, since the system gets the initial
values for the columns from the column table of the table view.
Step loop fields should never be
changed after the corresponding step loop processing has been performed.
You can use the CONTINUE statement to leave the current loop pass prematurely and continue with the next loop pass.
... INTO wa
The information on the fields of the current screen are provided in the explicitly specified work area wa and not in the header line of the system table.
The explicitly specified work area wa must have the same structure as the header line of the system table SCREEN.
Set Attributes Dynamically.
Set Attributes Dynamically