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: 

Display SDOCU document with ABAP??

Former Member
0 Kudos

Hello all,

We have technical program documentation that is created in transaction SDOCU. This technical documentation is currently called from the program documentation, via hyperlink, using the following SAPSCRIPT syntax:

/= <DS:CHAP.ZFAAU001_TECHDOC>Technical documentation</>

This is the structure and chapter names from SDOOCU:

Structure created:

"Z_PROG_DOC, Custom Program Documentation"

Chapter:

"ZFAAU001"

I have been looking, unsuccessfully, for a function module or method of a class that will allow me to display the documentation created in transaction SDOCU, using ABAP.

Does anybody know how to do this?

I tried debugging SDOCU to see if I can find the code I was looking for. I was not successful.

I'm displaying an OO editable ALV grid on a screen that is used for data entry. I have a custom ALV toolbar with a button for application help. When I click on this button I want to display the technical documentation created in transaction SDOCU.

Thanks

Bruce

1 REPLY 1

Former Member
0 Kudos

This code called the document.

*>> display application help

*

call function 'DSYS_SHOW'

exporting

application = 'SO70'

dokclass = 'CHAP'

  • DOKLANGU = SY-LANGU

dokname = 'ZFAAU001_TECHDOC'

  • DOKTITLE = ' '

  • HOMETEXT = ' '

  • OUTLINE = ' '

  • VIEWNAME = 'STANDARD'

  • Z_ORIGINAL_OUTLINE = ' '

  • CALLED_FROM_SO70 = ' '

  • STRUCTURE_ID =

  • IMPORTING

  • APPL =

  • PF03 =

  • PF15 =

  • PF12 =

exceptions

class_unknown = 1

object_not_found = 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.