‎2007 Aug 27 11:14 AM
Hi all,
I got a requirement in which if i click on one button i need to display my own documentaion just like Function module documentation(as it is, same screen). How can i able to do that. Please help me in this.
‎2007 Aug 27 11:48 AM
Hi Suresh,
Use <b>HELP_OBJECT_SHOW</b> function module to display documentation. Create document text using SE63 transaction.
Check this code
DATA it_lines TYPE STANDARD TABLE OF tline WITH HEADER LINE.
CALL FUNCTION 'HELP_OBJECT_SHOW'
EXPORTING
dokclass = 'TX'
DOKLANGU = SY-LANGU
dokname = 'ZF_AS_DOCU'
DOKTITLE = ' '
CALLED_BY_PROGRAM = ' '
CALLED_BY_DYNP = ' '
CALLED_FOR_TAB = ' '
CALLED_FOR_FIELD = ' '
CALLED_FOR_TAB_FLD_BTCH_INPUT = ' '
MSG_VAR_1 = ' '
MSG_VAR_2 = ' '
MSG_VAR_3 = ' '
MSG_VAR_4 = ' '
CALLED_BY_CUAPROG = ' '
CALLED_BY_CUASTAT =
SHORT_TEXT = ' '
CLASSIC_SAPSCRIPT = ' '
TABLES
links = it_lines
EXCEPTIONS
object_not_found = 1
sapscript_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Vinay
‎2007 Aug 27 11:23 AM
Hi,
Open your ZFM in change mode in se37 , you will find a FMdocumentation button.
Add you comments in that screen and save & activate.
Now when you open your ZFM in display modde and click the same button you will find your documented part.
rewards if useful,
regards,
nazeer
‎2007 Aug 27 11:26 AM
Hi Suresh,
It can possible to display ur own documentation.
documentation tables are: DOKHL(header) and DOKTL(line item)
make select from these tables passing ur program name to object name and fetch required data.
after that just WRITE to screen, it will display; and if you press back it will be back to previous screen.
Hope it will solve ur problem.
Regards,
Krishnendu
‎2007 Aug 27 11:35 AM
Thank you.
But when am writing on screen(module pool screen) this screen looks very different from FM documentaion screen. I need a screen it looks as it is as FM description screen in which i need to givie my own documentaion. How can i design that screen. Please help me in this.
‎2007 Aug 27 11:44 AM
Hi Suresh,
Friend FM documentation displayed in separate window and in back ground it's using SAPSCRIPT like editor.
Try with CALL WINDOW STARTING AT 10 20 ENDING AT 40 50
let me know what happens.
Regards
Krishnendu
‎2007 Aug 27 11:48 AM
Hi Suresh,
Use <b>HELP_OBJECT_SHOW</b> function module to display documentation. Create document text using SE63 transaction.
Check this code
DATA it_lines TYPE STANDARD TABLE OF tline WITH HEADER LINE.
CALL FUNCTION 'HELP_OBJECT_SHOW'
EXPORTING
dokclass = 'TX'
DOKLANGU = SY-LANGU
dokname = 'ZF_AS_DOCU'
DOKTITLE = ' '
CALLED_BY_PROGRAM = ' '
CALLED_BY_DYNP = ' '
CALLED_FOR_TAB = ' '
CALLED_FOR_FIELD = ' '
CALLED_FOR_TAB_FLD_BTCH_INPUT = ' '
MSG_VAR_1 = ' '
MSG_VAR_2 = ' '
MSG_VAR_3 = ' '
MSG_VAR_4 = ' '
CALLED_BY_CUAPROG = ' '
CALLED_BY_CUASTAT =
SHORT_TEXT = ' '
CLASSIC_SAPSCRIPT = ' '
TABLES
links = it_lines
EXCEPTIONS
object_not_found = 1
sapscript_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Vinay
‎2007 Aug 27 12:35 PM
Hi Vinay,
am not getting how to give document text in SE63. Please tell me how can i create document text.
Regards,
Suresh
‎2007 Aug 27 11:50 AM
Hi Laha,
Unfortunately CALL WINDOW state ment is not working. Please tell me if any other options are there.