<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic File transfer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760144#M904655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can anyone tell me how to use CL_GUI_FRONTEND_SERVICES=&amp;gt;File_Copy method to move a file from one folder to another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 May 2008 09:55:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-05T09:55:04Z</dc:date>
    <item>
      <title>File transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760144#M904655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Can anyone tell me how to use CL_GUI_FRONTEND_SERVICES=&amp;gt;File_Copy method to move a file from one folder to another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 09:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760144#M904655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: File transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760145#M904656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;Hope below example code can help you understand in using the class CL_GUI_FRONTEND_SERVICES:
&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: abap.

PARAMETERS: p_file1 TYPE filename OBLIGATORY,
            p_file2 TYPE filename OBLIGATORY.

DATA: l_ret TYPE abap_bool,
      l_suc TYPE i.
DATA: l_file1 TYPE string,
      l_file2 TYPE string.

START-OF-SELECTION.

  MOVE: p_file1 TO l_file1,
        p_file2 TO l_file2.

  CALL METHOD cl_gui_frontend_services=&amp;gt;file_exist
    EXPORTING
      file                 = l_file1
    RECEIVING
      result               = l_ret
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      wrong_parameter      = 3
      not_supported_by_gui = 4
      OTHERS               = 5.
  IF sy-subrc EQ 0.
    CALL METHOD cl_gui_frontend_services=&amp;gt;file_copy
      EXPORTING
        SOURCE               = l_file1
        DESTINATION          = l_file2
        overwrite            = 'X'
      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
        not_supported_by_gui = 12
        OTHERS               = 13.
    IF sy-subrc EQ 0.
      CALL METHOD cl_gui_frontend_services=&amp;gt;file_delete
        EXPORTING
          filename             = l_file1
        CHANGING
          rc                   = l_suc
        EXCEPTIONS
          file_delete_failed   = 1
          cntl_error           = 2
          error_no_gui         = 3
          file_not_found       = 4
          access_denied        = 5
          unknown_error        = 6
          not_supported_by_gui = 7
          wrong_parameter      = 8
          OTHERS               = 9.
      IF sy-subrc EQ 0.
        WRITE: 'File:', p_file1, ' successfully copied to: ',
                p_file2.
      ENDIF.
    ENDIF.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 10:09:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760145#M904656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T10:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: File transfer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760146#M904657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Eshwar for your co-operation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2008 10:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-transfer/m-p/3760146#M904657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-05T10:24:33Z</dc:date>
    </item>
  </channel>
</rss>

