04-21-2008 3:10 PM
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?
04-22-2008 4:07 AM
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
04-22-2008 4:07 AM
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
04-22-2008 8:32 AM