Methods of the Document Viewer 

Once you have instantiated the Document Viewer, you can work with it by calling its methods:

Method

Function

init_viewer

Initializes the Document Viewer instance

destroy_viewer

Destroys the Document Viewer instance

view_document_from_url

Displays a document referenced by a particular URL (either a physical location, such as HTTP://..., FTP://..., or FILE://..., or a generated SAPR3:// address from the BDS)

view_document_from_table

Displays a document stored in an internal table

close_document

Closes the last document to have been opened