... MODIF ID modid
This addition assigns screen objects ( Comment, Underscore line, Parameter, ...) to a modification group and hence allows dynamic modification of the selction screen display.
The modification group name modid must be specified directly and must be no longer than 3 characters. The addition MODIF ID assigns modid to the column SCREEN-GROUP1 of the predefined internal table SCREEN. Parameters assigned to a modification group can be changed together using the LOOP AT SCREEN and MODIFY SCREEN statements at the event AT SELECTION SCREEN OUTPUT or in the subroutine PBO of the database program of the assigned logical database.
You can use this addition with:
- SELECTION-SCREEN
COMMENT
- SELECTION-SCREEN
ULINE
- SELECTION-SCREEN
PUSHBUTTON
- PARAMETERS
- SELECT-OPTIONS
In each case all relevant screen objects are assigned to the modification group.
Without the MODIF ID addition, the SCREEN-GROUP1 component is empty. The remaining three fields for modification groups in the SCREEN table are populated by the runtime environmentand can be analyzed:
DATA SAPLANE_WA TYPE SAPLANE.
...
SELECTION-SCREEN COMMENT /1(60) TEXT-010.
...
SELECT-OPTIONS
S_PTYPE FOR SAPLANE_WA-PLANETYPE MODIF ID ABC.
...
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC' OR
SCREEN-GROUP3 = 'COM'.
SCREEN-INTENSIFIED
= '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
All screen objects (text, input fields, pushbuttons) belonging to the selection option S_PTYPE as well as all comments defined with SELECTION-SCREEN COMMENT are set to the output format INTENSIFIED.