save_document_to_url 

You use this method to save a document to a URL address It enables you to store documents in a central repository.

CALL METHOD document->save_document_to_url
     EXPORTING url           = url
               user_info     = user_info
               no_flush      = no_flush
     IMPORTING error         = error
               retcode       = retcode
     CHANGING  document_size = document_size.

Description of parameters

Parameter

Optional

Description

url

 

The URL address of the document to be saved

user_info

X

Logon and proxy data for accessing an HTTP or FTP server.

document_size

X

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.

URLs of documents in the local file system must be prefaced with ‘file://’.