SAP SELECTION-SCREEN MODIF ID ABAP Statements
Get Example source ABAP code based on a different SAP table
• MODIF ID SELECTION-SCREEN
SELECTION-SCREEN>, MODIF ID> Short Reference >
ABAP_SYNTAX
... MODIF ID modid ...>
What does it do?
After the MODIF ID> addition, a modid> identifier can be specified to assign a screen element of a selection screen to a modification group>. The MODIF ID> addition can be specified for the following statements:
SELECTION-SCREEN - COMMENT>>
SELECTION-SCREEN - PUSHBUTTON >>
SELECTION-SCREEN - TAB>>
SELECTION-SCREEN - ULINE>>
PARAMETERS>>
SELECT-OPTIONS>>
The name of the modid> modification group must be specified directly and can have no more than three characters. When generating a selection screen, modid> is entered for the properties of the screen elements created using the above statement in the group> that is assigned to the component group1> of the structure SCREEN>>. All screen elements of a group can be modified before displaying the selection screen together with the MODIFY SCREEN>> statement.
Latest notes:
The modification groups that are assigned to the group2> and group3> columns of the structure SCREEN>>, are set by the system when generating a selection screen.
group2> contains the value DBS> for screen elements defined in a logical database>.
group3> can contain values from the following table.
group4> is only intended for internal use.
Possible values in group3>: Key>Meaning of the screen element> BLK>Frame or title of a block COF>Output field that is linked with a selection parameter> or selection criterion> using the addition FOR FIELD>. COM>Output field that is not linked with a selection parameter or a selection criterion. HGH>Input field for the upper interval limit of a selection criterion ISX>Input field for a selection parameter that is linked with a search help using the addition AS SEARCH PATTERN>. LOW>Input field for the lower interval limit of a selection criterion OPU>Icon for the selection options of a selection criterion PAR>Input field of a selection parameter PBU>Pushbutton> TAB>Tab title> TOT>Output field for text in front of the input field of the upper interval limit of a selection criterion TST>Tabstrip> TXT>Output field for text in front of the input field of a selection parameter or the lower interval limit of a selection criterion ULI>Horizontal line VPU>Pushbutton for multiple selection of a selection criterion
ABAP_HINT_END
Example ABAP Coding
The elements of the b2> block are assigned to the bl2> modification group. The show_all> checkbox enables the option of displaying these elements. The change in the display takes place immediately, since the event AT SELECTION-SCREEN> is raised when the checkbox is selected. The function code is not needed. Instead, the content of show_all> is evaluated at PBO >.
ABEXA 00577
ABAP_EXAMPLE_END
Return to menu