Application Development 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: 

F1 Help

Former Member
0 Kudos
184

Dear Experts,

I am writing a program that updates the variants of other programs. Some of the programs need to be called once a week and while others need to be called several weeks in my program.

I am desinging a radio button with a T-Code beside in the selection screen area. When I point the T-code and press F1, I need to see a pop up window explainning the information of this program.

Is that possible to do this?

Thanks for your help!

Anna

Edited by: Anna Smith on Aug 11, 2008 8:05 PM

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos
107

Try like this:


PARAMETERS: P_R1  RADIOBUTTON GROUP RD1,
            P_R2  RADIOBUTTON GROUP RD1.

AT SELECTION-SCREEN ON HELP-REQUEST FOR P_R1.
  CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
      TITEL              = 'Help'
      TEXTLINE1          = 'This is test'
*   TEXTLINE2          = ' '
     START_COLUMN       = 25
     START_ROW          = 6
            .

Regards,

Naimesh Patel

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos
108

Try like this:


PARAMETERS: P_R1  RADIOBUTTON GROUP RD1,
            P_R2  RADIOBUTTON GROUP RD1.

AT SELECTION-SCREEN ON HELP-REQUEST FOR P_R1.
  CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
    EXPORTING
      TITEL              = 'Help'
      TEXTLINE1          = 'This is test'
*   TEXTLINE2          = ' '
     START_COLUMN       = 25
     START_ROW          = 6
            .

Regards,

Naimesh Patel

0 Kudos
107

Hi Naimesh,

Your solution is what I want. Thanks for your help!

I would like to extend my question as follow.

I have created a instance method which pops up a F1 Help window in a global class. I want to call this method in Selection-Screen area. For example:


AT SELECTION-SCREEN ON HELP-REQUEST FOR p_r1.
  call method Z_UPDATE_VAR=>F1HELP
          EXPORTING
            title_in   = 'Title'
            content_in = 'This is a test'.

The F1HELP is defined as a static and public method. However, it always complains that the method is unknown or protected or private.

I tried to declare an object of Z_UPDATE_VAR before calling this method, it still complains.

Your help is greatly appreciated.

Thanks,

Anna.

Former Member
0 Kudos
107

Why don't you maintain the program documentation. So that you will get standard 'i' button on the application tool bar.

Former Member
0 Kudos
107

Thanks for your help!