Entering content frameSyntax documentation view_document_from_url Locate the document in its SAP Library 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

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.

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.

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 R/3 window or a separate browser. Possible values:

  • 'X' : Display in R/3 window
  • ' ' : Display in separate browser
Leaving content frame