Application Development and Automation 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: 
Read only

Displaying documentation

suresh_kumar53
Participant
0 Likes
1,960

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,619

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,619

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

Read only

Former Member
0 Likes
1,619

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

Read only

suresh_kumar53
Participant
0 Likes
1,619

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.

Read only

Former Member
0 Likes
1,619

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

Read only

Former Member
0 Likes
1,620

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

Read only

0 Likes
1,619

Hi Vinay,

am not getting how to give document text in SE63. Please tell me how can i create document text.

Regards,

Suresh

Read only

suresh_kumar53
Participant
0 Likes
1,619

Hi Laha,

Unfortunately CALL WINDOW state ment is not working. Please tell me if any other options are there.