You use this method to query whether the document of the instance document was changed in the office application:
CALL METHOD document->has_changed
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode
ret_value = ret_value.
Description of parameters
Parameter |
Optional |
Description |
ret_value |
Flags whether the document was changed This value is only set if the user has changed the document and the open_readonly parameter was set to initial when you opened the document. |
Since the close_document method also returns information about whether the document has changed, you will very rarely have to use the has_changed method.