SAP SEL SCREEN PARAM SCREEN ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_SELSCR - Display Properties for Parameters
The example demonstrates how the select_options additions of the statement PARAMETERS can be used.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
This example program consists of six parts, each representing one of the screen_options additions of the statement PARAMETERS. Each example corresponds to a block on selection screen 100.
Part 1: If the cursor is not on the input field, a symbol appears in the input field of the selection parameter p which tells the user that an entry in this field is required and that the program cannot continue if no entry is made in this field.
Part 2: The three selection parameters p1, p2 and p3 have the same length (10) but are displayed in different lengths on the selection screen. Up to ten places, however, can be entered in any of the fields.
Part 3: Two checkboxes appear on the left side of the selection screen with the selection text appearing on their right. The checkbox b has the default value X . The elements of the modification groups sc1 and sc2 (see part 6) can be shown and hidden together with the two checkboxes. The display is switched immediately since the event AT SELECTION-SCREEN is raised if one of the checkboxes is chosen. The function code is not needed. Instead, the content of a or b is evaluated at PBO.
Part 4: Radio buttons r1, r2, and r3 form group rad1, while s1, s2, and s3 form group rad2. On the selection screen, r2 and s3 are selected, while all others are not.
Part 5: The selection parameter p_carrid is displayed with a length of 20 and filled with the label Lufthansa. The user can select another airline, which assigns the three-character airline ID to the selection parameter. When the function code onli, which is assigned to the function Execute in the GUI status of the default selection screen, is assigned, the events AT SELECTION-SCREEN and START-OF-SELECTION are raised.
Part 6: The selection parameters test1 and test3 are assigned to the group sc1, while test2 and test4 are assigned to group sc2. During the AT SELECTION-SCREEN OUTPUT event, the INTENSIFIED field of internal table screen is set to 1 or 0, depending on the content of the group1 field. On the selection screen, the lines for test1 and test3 are highlighted whereas those for test2 and test4 are not.