Assigning a Modication Group on the Selection Screen

Addition

... MODIF ID modid

Effect

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:

BLK for SELECTION-SCREEN ... BLOCK ...: Block
COF for SELECTION-SCREEN COMMENT ... FOR FIELD ...: Field-related comment
COM for SELECTION-SCREEN COMMENT: Comment
HGH for SELECTION-OPTIONS: Interval upper limit
ISX for PARAMETERS ... AS SEARCH PATTERN: Komplex selection
LOW for SELECTION-OPTIONS: Interval lower limit
OPU for SELECTION-OPTIONS: Selection option icons
PAR for PARAMETERS: Parameters
PBU for SELECTION-SCREEN PUSHBUTTON ...: Pushbutton
TAB for SELECTION-SCREEN TAB: Tab title
TOT for SELECTION-OPTIONS: Text of interval upper limit
TST for SELECTION-SCREEN ... TABBED ...: Tabstrip
TXT for PARAMETERS, SELECT-OPTIONS: Selection text
ULI for SELECTION-SCREEN ULINE: Horizontal Line
VPU for SELECT-OPTIONS: Pushbutton for multiple selection

Example

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.