Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos


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.

Labels in this area