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: 

FM like HELP_START with Internal Table?

Former Member
0 Kudos

Hi,

I need to open a screen like the FM 'HELP_START' (F1) with text of an Internal Table.

Anyone know a FM that can I use??

Thx!

Allan Cristian

Edited by: Allan Cristian on Sep 3, 2009 3:30 PM

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Try with fm


at selection-screen on help-request for p_mplant.
* This perform will add records in the table i_help
  perform f_append_type.

* This perform will be executed when F1 key is pressed 
* It will show a documentation
  perform f_document using v_title.

form f_append_type.

  clear wa_help.
  refresh i_help.

  wa_help-tdline = text-069.             " This input is for number of
                                         " plants columns displayed
  wa_help-tdformat = '1'.
  append wa_help to i_help.
  clear wa_help.

  wa_help-tdline = text-070.             " There will be maximum of 25
                                         " plants will be displayed
  wa_help-tdformat = '2'.
  append wa_help to i_help.
  clear wa_help.

  wa_help-tdline = text-071.             " If input is 0 or blank, then
                                         " plants will not be displayed
  wa_help-tdformat = '3'.
  append wa_help to i_help.
  clear wa_help.

  v_title = text-072.                    " Display Plants

endform.                                 " F_append_type

form f_document using  p_v_title.

  call function 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
    exporting
      task       = c_display
      titel      = p_v_title
    tables
      text_table = i_help.

endform.                                 " F_document

3 REPLIES 3

former_member194669
Active Contributor
0 Kudos

Try with fm


at selection-screen on help-request for p_mplant.
* This perform will add records in the table i_help
  perform f_append_type.

* This perform will be executed when F1 key is pressed 
* It will show a documentation
  perform f_document using v_title.

form f_append_type.

  clear wa_help.
  refresh i_help.

  wa_help-tdline = text-069.             " This input is for number of
                                         " plants columns displayed
  wa_help-tdformat = '1'.
  append wa_help to i_help.
  clear wa_help.

  wa_help-tdline = text-070.             " There will be maximum of 25
                                         " plants will be displayed
  wa_help-tdformat = '2'.
  append wa_help to i_help.
  clear wa_help.

  wa_help-tdline = text-071.             " If input is 0 or blank, then
                                         " plants will not be displayed
  wa_help-tdformat = '3'.
  append wa_help to i_help.
  clear wa_help.

  v_title = text-072.                    " Display Plants

endform.                                 " F_append_type

form f_document using  p_v_title.

  call function 'COPO_POPUP_TO_DISPLAY_TEXTLIST'
    exporting
      task       = c_display
      titel      = p_v_title
    tables
      text_table = i_help.

endform.                                 " F_document

0 Kudos

Hi a®s,

it works, but I need the same appearance (or near) that Help F1 does.

Regards,

Allan Cristian

Edited by: Allan Cristian on Sep 3, 2009 3:50 PM

0 Kudos

Then

use fm HELP_DOCULINES_SHOW

For testing this go to SE37--> and pass value into table HELPLINES (Tables Tab)


                             
 TDFORMAT                       AS                      
TDLINE                             TESTING FOR F1 HELP 

and execute