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: 

how to show program documentation in the dynpro?

Former Member
0 Kudos

hi everyone

i just wrote a short documentation for the abap programm and now i want to make a button in the menubar in my dynpro to show the documentation... how can i do this?

1 ACCEPTED SOLUTION

Former Member

The function DSYS_SHOW_FOR_F1HELP will do the job I think - here's some sample code that should point you in the right direction:


report zlocal_jc_sdn_show_doco.

start-of-selection.
  perform show_my_doco.

*&---------------------------------------------------------------------*
*&      Form  show_my_doco
*&---------------------------------------------------------------------*
form show_my_doco.
*
* Popup doco for sy-repid
*
  data:
    l_dokclass          like dsysh-dokclass,
    l_docu_object       like sy-repid,
    l_title             like dsyat-child_titl.

  l_title       = 'Report documentation'.
  l_dokclass    = 'RE'.
  l_docu_object = sy-repid.

  call function 'DSYS_SHOW_FOR_F1HELP'
    exporting
      dokclass         = l_dokclass
      dokname          = l_docu_object
      doktitle         = l_title
      short_text       = 'X'
      appendix         = 'X'
    exceptions
      class_unknown    = 1
      object_not_found = 2
      others           = 3.

endform.                    "show_my_doco

Jonathan

2 REPLIES 2

Former Member

The function DSYS_SHOW_FOR_F1HELP will do the job I think - here's some sample code that should point you in the right direction:


report zlocal_jc_sdn_show_doco.

start-of-selection.
  perform show_my_doco.

*&---------------------------------------------------------------------*
*&      Form  show_my_doco
*&---------------------------------------------------------------------*
form show_my_doco.
*
* Popup doco for sy-repid
*
  data:
    l_dokclass          like dsysh-dokclass,
    l_docu_object       like sy-repid,
    l_title             like dsyat-child_titl.

  l_title       = 'Report documentation'.
  l_dokclass    = 'RE'.
  l_docu_object = sy-repid.

  call function 'DSYS_SHOW_FOR_F1HELP'
    exporting
      dokclass         = l_dokclass
      dokname          = l_docu_object
      doktitle         = l_title
      short_text       = 'X'
      appendix         = 'X'
    exceptions
      class_unknown    = 1
      object_not_found = 2
      others           = 3.

endform.                    "show_my_doco

Jonathan

0 Kudos

i copied it 1:1 into my program and it works 😃

thanks!