ABAP Keyword Documentation → ABAP − Reference → SAP GUI User Dialogs → General Dynpros → Field Help, Input Help, and Dropdown List Boxes → Field Helps, Input Helps, and Dropdown List Boxes - Examples
Dynpros, Input Help from ABAP Dictionary
This example demonstrates how input helps from ABAP Dictionary can be used.
Other versions: 7.31 | 7.40 | 7.54
Source Code
REPORT demo_dynpro_f4_help_dictionary.
TABLES demof4help.
CALL SCREEN 100.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
Description
The static next dynpro number of dynpro 100 is 100. The input fields are assigned the components of the structure DEMOF4HELP from ABAP Dictionary. The function code of the pushbutton is CANCEL with the function type E. When selecting the F4 help for the individual fields, the user is shown the following types of input help:
- The fields Date and Time refer to the components DATE_FIELD and TIME_FIELD of the structure in ABAP Dictionary. The data type is either DATS or TIMS. Consequently, the input help displayed here is either a calendar or a clock, both set to the current values by default.
- The field Numbers refers to the component NUM_FIELD of the structure in ABAP Dictionary. This component is based on the domain S_NUMBERS to which ten fixed values are assigned. These are displayed as the input help.
- The first field Airline refers to the component CARRIER1 of the structure in ABAP Dictionary. This component has the underlying data element DEMOF4DE. The search help DEMO_F4_DE with the parameter CARRID is assigned to this data element. The search help reads the columns CARRID and CARRNAME of the database table SCARR. Only SCARRNAME is specified but CARRID is flagged as an export parameter.
- The second field Airline refers to the component CARRIER2 of the structure in ABAP Dictionary. This component is assigned the check table SCARR. The check table SCARR in turn is assigned the search help H_SCARR which can display and export both columns CARRID and CARRNAME.
- The field Connection Number refers to the component CONNID of the structure in ABAP Dictionary. This component is assigned the search help DEMO_F4_FIELD. The search help has two parameters, CARRID and CONNID, which are assigned to the components CARRIER2 and CONNID of the structure. The search help imports CARRIER, reads the associated data from the database table SPFLI, displays CARRIER and CONNID, and exports CONNID.