ABAP Keyword Documentation →  ABAP − Reference →  User Dialogs →  Screens →  Statements in the Screen Flow Logic →  FIELD →  Field and Input Help →  Field and Input Helps - Examples → 

Screens, Screen Input Help

The example shows how to use the screen input help.

Source Code

REPORT demo_dynpro_f4_help_dynpro.

DATA: carrier(3) TYPE c,
      connection(4) TYPE c.

CALL SCREEN 100.

MODULE cancel INPUT.
  LEAVE PROGRAM.
ENDMODULE.

Description

The static next screen number of screen 100 is 100. The input fields have been taken from the program fields carrier and connection. The function code of the pushbutton is CANCEL with the function type E. The screen field carrier is assigned the search help DEMO_F4_DE with the search help parameter CARRID, which accesses the database table SCARR. The screen flow logic is as follows:

PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
  MODULE cancel AT EXIT-COMMAND.
  FIELD carrier VALUES ('AA', 'LH').
  FIELD connection SELECT *
                      FROM  spfli
                      WHERE carrid = carrier
                        AND connid = connection.

When choosing the F4 help for the individual fields, the user receives the following input helps: