Downtime Announcement: Please note the SAP Community Wiki will be unavailable due to a system upgrade on Thursday, September 24th between 6 and 7 AM CEST
Skip to end of metadata
Go to start of metadata

CL_GUI_FRONTEND_SERVICES=>FILE_COPY

Give the path of the file to be copied as the value of COPY_SOURCE and the destination path as the value of COPY_DESTIN.

Error rendering macro 'code': Invalid value specified for parameter 'com.atlassian.confluence.ext.code.render.InvalidValueException'
DATA: COPY_SOURCE TYPE STRING VALUE 'C:\Test\test1.txt',
           COPY_DESTIN TYPE STRING VALUE 'C:\Test\Copied\test1.txt'.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_COPY
  EXPORTING
    SOURCE             = COPY_SOURCE
    DESTINATION        = COPY_DESTIN
    OVERWRITE          = SPACE
  EXCEPTIONS
    CNTL_ERROR         = 1
    ERROR_NO_GUI       = 2
    WRONG_PARAMETER    = 3
    DISK_FULL          = 4
    ACCESS_DENIED      = 5
    FILE_NOT_FOUND     = 6
    DESTINATION_EXISTS = 7
    UNKNOWN_ERROR      = 8
    PATH_NOT_FOUND     = 9
    DISK_WRITE_PROTECT = 10
    DRIVE_NOT_READY    = 11
    OTHERS             = 12.
  • No labels