You use this method to query whether a document has already been opened for the instance document:
CALL METHOD document->is_open
EXPORTING no_flush = no_flush
IMPORTING ret_value = ret_value
error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
ret_value |
Indicates whether the document is open |
You should use a flag in your application program to mark whether the application is still open. Only use this method if you are unsure whether the desktop application is still open (for example, if a close_event event might have been lost).
You can also call the close_document method even if the document is already closed. The method does not return any errors. This is safer and quicker than calling is_open followed by close_document.