Show TOC

Syntax documentationview_document_from_url Locate this document in the navigation structure

Use this method to display a document in the Document Viewer. You identify the document by its Uniform Resource Locator (URL). The URL can be generated (by the BDS), but can also have one of the forms HTTP://, FTP://, or FILE://. You must already have initiated the Document Viewer (init_viewer method).

Note Note

You should use the Business Document Service (BDS) to manage your documents. Its programming interface contains a method that returns the URL of a document. You can use the URL directly in the document_url parameter of this method.

End of the note.

Syntax Syntax

  1. CALL METHOD document_viewer->view_document_from_url
    EXPORTING document_url = document_url
    show_inplace = show_inplace
    EXCEPTIONS cntl_error = 1
    not_initialized = 2
    dp_error_general = 3
    invalid_parameter = 4.
End of the code.

Parameter and Type

Optional

Meaning

document_url

TYPE C

The URL of the document you want to display

show_inplace

TYPE C

Indicates whether the document should be displayed in the SAP GUI window or a separate browser. Possible values:

  • 'X': Display in SAP GUI window

  • ' ': Display in separate browse r