Ansicht
Dokumentation
ABAPSELECTION-SCREEN_MODIF - SELECTION-SCREEN MODIF
BAL_S_LOG - Application Log: Log header data General Material DataThis documentation is copyright by SAP AG.
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:
-
GROUP2 contains the value "DBS" for elements that are defined in a logical database.
-
GROUP3 contains the following values depending on the screen element:
- 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
-
GROUP4 is intended solely for internal use.
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.
SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up ABAP Short Reference
This documentation is copyright by SAP AG.
Length: 4828 Date: 20240426 Time: 024307 sap01-206 ( 57 ms )