You use this method to save an office document locally under another name
CALL METHOD document->save_as
EXPORTING file_name = file_name
prompt_user = prompt_user
no_flush = no_flush
IMPORTING error = error
retcode = retcode.
Description of parameters
Parameter |
Optional |
Description |
file_name |
X |
The name under which the office document is to be saved |
prompt_user |
X |
When you execute the method, it starts the relevant dialog box in the office application. |

You should only use this method to create a local copy of the document on the presentation server. Note that this method only works while the document is open. To save the document in a document repository, use the method save_document_to_url.