SAP DYNPRO F4 HELP DIC ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - Input Helps in the ABAP Dictionary
This example demonstrates how input helps from the ABAP Dictionary can be used.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The static next dynpro number of dynpro 100 is 100. The input fields are assigned the components of the structure DEMOF4HELP from the ABAP Dictionary. The function code of the pushbutton is CANCEL with the function type E. When the user chooses the F4 help for the individual fields, the following is displayed:
The fields Date and Time refer to the components DATE_FIELD and TIME_FIELD of the DDIC structure. 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 DDIC structure. This component is based on the domain DEMO_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 DDIC structure. This component is based on the 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 DDIC structure. 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 DDIC structure. 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.