You use this method to open an existing document. The document must be stored in the ABAP program in an internal table.
CALL METHOD document->open_document_from_table
EXPORTING document_table = document_table
document_size = document_size
document_title = document_title
open_inplace = open_inplace
open_readonly = open_readonly
onsave_macro = onsave_macro
startup_macro = startup_macro
protect_document = protect_document
no_flush = no_flush
IMPORTING error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
document_table |
Internal table containing the document. | |
document_size |
File size. | |
document_title |
X |
Title to be displayed in the title bar of the desktop application. |
open_inplace |
X |
'X' : Document is opened within the R/3 window (only if the parameter inplace = ‘X’ was set when you called the method get_document_proxy).' ' : Document is opened in a separate window. |
open_readonly |
X |
Open in display mode (the close_event event is not triggered when the document is closed, and the parameter has_changed is always initial). |
onsave_macro |
X |
The name of a macro that is called if the document has been changed and one of the following conditions applies:
The Macro must be stored in the document. Note: What constitutes a change to the document differs from application to application:
In MS Word and MS Powerpoint, you must physically change the document in order for the macro to be called |
startup_macro |
X |
Macro to be run when you open the document. |
protect_document |
X |
Flags whether to protect document against changes. It is still possible to select within the document. |
You can only start one document in the R/3 window (in place).