ARTICLE
Selection Screens, Input Help
The example illustrates a self-defined F4 help on selection
screens.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
In this program, a selection screen with two parameters that are based
on column CARRID of database table
SPFLI is declared. Whereas for p_carr_1 the input help
of the Dictionary is used, a special separate input help is programmed
for p_carr_2 . Screen 100 is called for this purpose. In the flow
logic, the system starts the dialog module value_list at the
PBO event. The screen layout for screen 100 is not required, and
the system does not call any dialog modules at the PAI event.
PROCESS BEFORE OUTPUT.
MODULE value_list.
PROCESS AFTER INPUT.
The dialog module value_list suppresses the display of the screen
layout of screen 100 and switches to list display. The list shows values
for the parameter p_carr_2 and stores them in the HIDE
area. Selecting a line on the value list triggers the event AT
LINE-SELECTION , automatically putting the selected value from the
HIDE area in the field p_carr_2 . If the selection is
valid, the system quits the event block for AT LINE-SELECTION
directly with the selection screen and fills the input field
accordingly.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved