When you close a document, it remains in memory on the presentation server. You can reopen it using the reopen_document method.
CALL METHOD document->reopen_document
EXPORTING open_inplace = open_inplace
open_readonly = open_readonly
do_save = do_save
onsave_macro = onsave_macro
startup_macro = startup_macro
no_flush = no_flush
IMPORTING has_changed = has_changed
error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
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). |
do_save |
X |
Determines whether the document should be saved |
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. |
has_changed |
Flags whether the office application document was changed If you set the open_readonly parameter when you opened the document, the value of has_changed is always initial. |
You can only start one document in the R/3 window (in place).