view_document_from_url 
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.
Syntax
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 |
|
The URL of the document you want to display |
|
|
Indicates whether the document should be displayed in the SAP GUI window or a separate browser. Possible values:
|