Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Dynpros →  Statements in the Screen Flow Logic →  FIELD 

Field and Input Help

In the event blocks at POH and POV, only FIELD statements are possible. The statement MODULE can only be used as addition of the statement FIELD. In the case of these events, no data is transported automatically from the dynpro to the ABAP program and the statement FIELD is ignored accordingly. The statement FIELD can either be associated with the statement MODULE or specified with the addition WITH at POH.

If the statement FIELD is listed multiple times for the same dynpro field, only the first statement is executed. If the event blocks at POH and POV are not implemented, then field or input help fields are displayed which are defined in the system or in ABAP Dictionary . If no help is defined, this is displayed in a message in the task bar.

Other versions: 7.31 | 7.40 | 7.54

Calling a Dialog Module

Syntax

FIELD dynp_field MODULE mod.

Effect

If the statement FIELD is associated with a statement MODULE in the event block at POH or POV, the specified dialog module mod is called if the function keys F1 or F4 are selected on the assigned screen element. After the dialog module is processed, the system returns to display the current screen without triggering the event PBO and without automatically transporting data from the ABAP program to the dynpro. After the dialog module is called, no condition AT or ON can be specified.


Note

A field help or input help is to be programmed in the called dialog module. If data is to be transported between the dynpro and the ABAP program, this transport must be programmed here as well. For both tasks, function modules can be used, for example DYNP_VALUES_READ or DYNP_VALUES_UPDATE. The function module DYNP_VALUES_UPDATE is intended for the event POV and only functions there and only for the current dynpro. If data is to be passed from the ABAP program to the dynpro outside of POV, the function module DYNP_UPDATE_FIELDS can also be used.

Calling the Data Element Supplement Documentation

Syntax

FIELD dynp_field [MODULE mod] WITH hlp.

Effect

If the addition WITH is used in the event block at POH, the data element supplement documentation,specified in hlp is displayed when the function key F1 is selected on the associated screen element. The prerequisite is that the dynpro field dynp_field was defined with reference to a data element in ABAP Dictionary and that additional documentation for the current dynpro and the current program was created there.

hlp expects a global numeric data object of the ABAP program which contains the number of the data element supplement documentation. The name of hlp must not simultaneously be the name of a data element in ABAP Dictionary, because this will cause a program termination when the dynpro is used during the program execution. MODULE can be used to call a dialog module mod to fill the data object hlp.


Note

The data element supplement documentation replaces the data element documentation which is displayed by default for dynpro fields defined with reference to a data element. The data element supplement documentation has to be specifically designed for the current dynpro and the current program. The associations between the data element supplement documentation and dynpros of programs are stored in the database table THLPF. This association is created if the data element supplement documentation for a dynpro field was created using forward navigation in Screen Painter. The association is not created if the data element supplement documentation was created directly in ABAP Dictionary.

Continue

Field and Input Helps - Examples