Skip to Content
Author's profile photo Former Member

Show report documentation via information button on selection screen in browser.

Show report documentation  via information button on selection screen in browser.

(if you want to show technical and user documentation, just create another entry/program)

 

 

 

Create a path on your server where you store the technical documentation. In this example these are PDF files.

In your report documentation create:

 

 

 

The report Z_ABAP will do the job later on.

In your program use the following at Initialization:

 

INITIALIZATION.

repid = sy-repid.

export repid to MEMORY ID ‘ZABAP’.

 

 

 

REPORT Z_ABAP.

 

data: url(1000),

prog type rs38m,

path(1000) type c,

filename(1000) type c,

repid type sy-repid.

 

clear: prog, filename, path.

 

import repid from memory ID ‘ZABAP’.

* Called from selection screen or SE38 screen?

if repid EQ space.

get PARAMETER ID ‘RID’ FIELD prog-programm.

else.

prog-programm = repid.

endif.

 

 

 

 

* Create file name

concatenate prog-programm ‘.pdf’ into filename.

 

* Path

call function ‘FILE_GET_NAME_USING_PATH’

exporting

logical_path                     = ‘ZREPORT_DOC’

file_name                        = filename

ELEMINATE_BLANKS                 = ‘ ‘

USE_PRESENTATION_SERVER          = ‘X’

IMPORTING

FILE_NAME_WITH_PATH              = path

EXCEPTIONS

PATH_NOT_FOUND                   = 1

MISSING_PARAMETER                = 2

OPERATING_SYSTEM_NOT_FOUND       = 3

FILE_SYSTEM_NOT_FOUND            = 4

OTHERS                           = 5.

 

if sy-subrc <> 0.

Message………

endif.

 

* Show

CALL FUNCTION ‘CALL_BROWSER’

EXPORTING

url = path.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.