Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to handle help function type in a dynpro

Private_Member_19084
Active Contributor
0 Likes
864

Hello

I've made a button with the functiontype H ( Help Function) and now I'd like to react on this button.

But in the POV AND POH I can't call a module, because for this I need an input-/outputfield.

(FIELD "FIELDNAME" MODULE "MODULENAME").

My question is, how can I react on this functiontype / "HelpButton" ?

Thx in advance

Christian

Hello

I've made a button with the functiontype H ( Help Function) and now I'd like to react on this button.

But in the POV AND POH I can't call a module, because for this I need an input-/outputfield.

(FIELD "FIELDNAME" MODULE "MODULENAME").

My question is, how can I react on this functiontype / "HelpButton" ?

Thx in advance

Christian

5 REPLIES 5
Read only

jayesh_gupta
Active Participant
0 Likes
775

What kind of reaction are you expecting on the click of this button. Do you have to display a search help without a screen field?

Regards,

Jayesh

Read only

0 Likes
775

Yes, I would like to show a list of available values BUT without a field.

Therefore I use the function type 'H' on my "help" button.

Or for what is the function type H on a button good for?

Thx in advance

Read only

0 Likes
775

There are two ways:

First************

Process after input.

module user_command.

Code inside module user_command:

IF SY-UCOMM = 'H'      "Function code for help button
*fetch all the list and store into an internal table.

* Call another screen to display the internal table.
endif.

Second*****************

Create an input field on the screen and make it invisible.

Process after input.

module user_command.

Code inside module user_command:

IF SY-UCOMM = 'H'      "Function code for help button
*fetch all the list and store into an internal table.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
*         DDIC_STRUCTURE         = ' '
      retfield               = 'name of field of internal table which is to be returned to invisible dynpro field'
*         PVALKEY                = ' '
     dynpprog               = 'program name'
     dynpnr                 = 'dynpro number'
     dynprofield            =  'name of invisible dynpro field'
*    STEPL                  = 0
*    WINDOW_TITLE           =
*    VALUE                  = ' '
    value_org              = 'S'
*   MULTIPLE_CHOICE        = ' '
*   DISPLAY                = ' '
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
    TABLES
      value_tab              = Internal table containing list to be displayed
*     FIELD_TAB          =
*     RETURN_TAB             =
*      dynpfld_mapping        = 
   EXCEPTIONS
     parameter_error        = 1
     no_values_found        = 2
     OTHERS                 = 3
            .
 
endif.

Read only

0 Likes
775

When I use the function TYPE "H" (not CODE), the PAI does not start.

And for me it is important, that I don't run through the PAI and PBO, so I need the function type H -> only POV or POH!

Read only

0 Likes
775

Problem solved