21.5.10

Note 10099 - ABAP: separate F4/F1 on selection screens from 3.0

Symptom

Keyword: selection screen
Starting in Release 3.0, it is possible to use self-defined F4 and F1 routines for parameters and select options on selection screens.
For report-specific parameters/select options, this is done by specifying the event language elements

AT SELECTION-SCREEN ON VALUE-REQUEST FOR .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR -LOW.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR -HIGH.

AT SELECTION-SCREEN ON HELP-REQUEST FOR .
AT SELECTION-SCREEN ON HELP-REQUEST FOR -LOW.
AT SELECTION-SCREEN ON HELP-REQUEST FOR -HIGH.

This enables you to control which field(s) is/are supported for select options, and the correct field can be provided with the selected value in an F4 case.

If F1/F4 is pressed on the appropriate selection screen field, the coding block after AT SELECTION-SCREEN ON ... is processed.

For database-specific parameters and select options, F1/F4 can be supported - with the appropriate additional specifications for the PARAMETERS and SELECT-OPTIONS statement in Include DBxyzSEL (logical database xyz):

PARAMETERS ... VALUE-REQUEST.
PARAMETERS ... HELP-REQUEST.

SELECT-OPTIONS ... VALUE-REQUEST.
SELECT-OPTIONS ... VALUE-REQUEST FOR LOW.
SELECT-OPTIONS ... VALUE-REQUEST FOR HIGH.
SELECT-OPTIONS ... HELP-REQUEST.
SELECT-OPTIONS ... HELP-REQUEST FOR LOW.
SELECT-OPTIONS ... HELP-REQUEST FOR HIGH.

If only VALUE-REQUEST or HELP-REQUEST is specified for SELECT-OPTIONS, F4 is supported for the LOW field and F1 for the HIGH field.

In this case, pressing the appropriate keys triggers routine

FORM _VAL.
FORM _HLP.

FORM -LOW_VAL.
FORM -LOW_HLP.

FORM -HIGH_VAL.
FORM -HIGH_HLP.

in the database access program SAPDBxyz.

No comments:

Post a Comment