SAP Function SDOK_PHIOS_GET_COPY - Get Copies of Content of Physical Documents

Parameter Reference Type Length Default Optional Text
CLIENT SYST-MANDT C 3 SY-MANDT X Client
FTP_KEEP_OPEN_FLAG SYST-DATAR C 1 X Flag for Keeping FTP Connection Open

Parameter Reference Length Optional Text
BAD_OBJECTS SDOKERRKEY 44 Non-Exportable Objects
COMPONENTS SDOKCOMCHO 952 X Component Information
OBJECT_FILE_INFORMATIONS SDOKEXPORT 552 X Obsolete, Only Use "COMPONENTS"

Functionality
This function module copies the content of the physical document inread-only mode to the destination computer.
This function module has the same interface as SDOK_PHIOS_CHECKOUT.However, this function module copies the content for display purposesonly, and does not prevent other users from checking out the document.
Possible error codes are as follows:
,,0:,,bad class:,,,,,,no class known for physical document
,,1:,,not_existing:,,,,,,document does not exist
,,3:,,missing_directory:,,,,no target directory specified
,,5:,,transfer_error:,,,,error with data transfer
,,6:,,not_authorized:,,,,no authorization
,,7:,,connection_error:,,,,connection to database cannot be
,,,,,,,,,,,,established
,,8:,,bad_storage_category:,,storage category specified for physical
,,,,,,,,,,,,document is unknown

  • The error codes are the same as those for SDOK_PHIOS_CHECKOUT, except
  • for "not_allowed", which cannot occur here.
    • It is not currently possible to copy content to the file system of the
    • application server, or to transfer the content in the form of aninternal table.
      • If the function module is likely to be called several times in
      • succession, and if data is transferred via FTP, you can set theFTP_KEEP_OPEN_FLAG flag to ensure that the same FTP connection is usedfor all transfers.
        • If the application cannot differentiate between file names, it creates
        • separate directories for each document. This avoid name conflicts. Thismay the case with HTML documents and referenced GIF files, for example.