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: KeyMeaning of the screen element BLKFrame or title of a block COFOutput field that is linked with a selection parameter or selection criterion using the addition FOR FIELD. COMOutput field that is not linked with a selection parameter or a selection criterion. HGHInput field for the upper interval limit of a selection criterion ISXInput field for a selection parameter that is linked with a search help using the addition AS SEARCH PATTERN. LOWInput field for the lower interval limit of a selection criterion OPUIcon for the selection options of a selection criterion PARInput field of a selection parameter PBUPushbutton TABTab title TOTOutput field for text in front of the input field of the upper interval limit of a selection criterion TSTTabstrip TXTOutput field for text in front of the input field of a selection parameter or the lower interval limit of a selection criterion ULIHorizontal line VPUPushbutton 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