Saves an office document in an internal table.
CALL METHOD document->save_document_to_table
EXPORTING no_flush = no_flush
IMPORTING error = error
retcode = retcode
CHANGING document_table = document_table
document_size = document_size.
Description of parameters
Parameter |
Optional |
Description |
document_table |
Internal table in which you want to save the document. | |
document_size |
The length of the saved document is placed in this field. |

Close the document in the office application (using the method close_document) before calling this method. This ensures that the document cannot be changed after you have saved it. You can also use this method to make a backup copy of a document.
After saving, release the memory occupied by the document by calling the release_document method.