Get Example source ABAP code based on a different SAP table
ABAP_DYNPRO - Field Help This example demonstrates how a field help is implemented on dynpros.
ABAP_SOURCE_CODE ABAP_EXEC >
ABAP_DESCRIPTION The static next dynpro number of dynpro 100 is 100. The input fields are assigned the fields DEMOF1HELP-FIELD1>, DEMOF1HELP-FIELD2>, DEMOF1HELP-FIELD3>, and DEMOF1HELP-FIELD4> from the ABAP Dictionary and the fields field5> and field6> from the ABAP program. The function code of the pushbutton is CANCEL> with the function type E> . The dynpro flow logic is as follows: PROCESS BEFORE OUTPUT. PROCESS AFTER INPUT. MODULE cancel AT EXIT-COMMAND. PROCESS ON HELP-REQUEST. FIELD demof1help-field4 MODULE f1_help_field4 WITH docu_num. FIELD field5 MODULE f1_help_field5. FIELD field6 MODULE f1_help_field6.> The components FIELD1> through FIELD4> of the structure DEMOF1HELP>> refer to the data element DEMOF1TYPE>>. This data element is documented and two supplementary documentation objects with numbers 0100 and 0200 are created. The user sees the following field help:
If the user chooses F1> on the input field for DEMOF1HELP-FIELD1>, the data element documentation of DEMOF1TYPE> is displayed, since the field is not specified after PROCESS ON HELP-REQUEST>.
If the user chooses F1> repeatedly for the input fields DEMOF1HELP-FIELD2> and DEMOF1HELP-FIELD3>, the data element documentation is displayed, along with the supplementary documentation for either 0100 or 0200. The necessary assignments are stored statically in the database table THLPF>>.
If the user chooses F1> repeatedly for the input field DEMOF1HELP-FIELD4>, the data element documentation is displayed, along with the supplementary documentation for either 0100 or 0200. The variable docu_num> is filled accordingly in the dialog module f1_help_field2>.
If the user chooses F1> on the input field for field5>, the data element documentation of DEMOF1TYPE> is displayed since this is called in the dialog module f1_help_field5> by the function module HELP_OBJECT_SHOW_FOR_FIELD>.
If the user chooses F1> on the input field for field6>, the SAPscript document DEMO_FOR_F1_HELP> is displayed since this is called in the dialog module f1_help_field6> by the function module HELP_OBJECT_SHOW>.