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).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
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 |
The URL of the document you want to display | |
show_inplace |
Indicates whether the document should be displayed in the R/3 window or a separate browser. Possible values: |