SAP DYNP FIELD HELP



Get Example source ABAP code based on a different SAP table
  



ABAP_DYNPRO - FIELD, Field Help 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 linked with the statement MODULE or specified with the addition WITH at POH.
If the statement FIELD is specified more than once for the same dynpro field, only the first statement is executed. If the event blocks at POH and POV are not implemented, field or input help fields are displayed that are defined in the system or in the ABAP Dictionary. If no help is defined, this is displayed in a message in the task bar.
ITOC



Latest notes:

For a more detailed description, see also Field Help, Input Help, and Dropdown List Boxes.
ABAP_HINT_END

Calling a Dialog Module

ABAP_SYNTAX
FIELD dynp_field MODULE mod.

What does it do?
If the statement FIELD is linked 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 layout without raising 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.



Latest notes:

A field help or input help should 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 there as well. For both tasks, there are function modules, such as DYNP_VALUES_READ or DYNP_VALUES_UPDATE. The function module DYNP_VALUES_UPDATE is intended for the event POV and only works 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.
ABAP_HINT_END

Calling the Data Element Supplementary Documentation

ABAP_SYNTAX
FIELD dynp_field $[MODULE mod$] WITH hlp.

What does it do?
If the addition WITH is used in the event block at POH, the data element supplementary 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 the ABAP Dictionary and that supplementary 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 supplementary documentation. The name of hlp must not simultaneously be the name of a data element in the 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.



Latest notes:

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