<?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 Re: How to copy files on the application Server using coding in report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215793#M766782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can certainly issue a 'cp' command (if you are running UNIX/Linux) in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would suggest using this func module instead - ARCHIVFILE_SERVER_TO_SERVER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is VERY straightforward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 19:22:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-08T19:22:11Z</dc:date>
    <item>
      <title>How to copy files on the application Server using coding in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215792#M766781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a report, there we must copy files on application server from one directory to another one on the same application server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean it in easiest way just like in Operation System (DOS/Unix): copy path1\file1 to path2\file2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so how it works in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 19:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215792#M766781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T19:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy files on the application Server using coding in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215793#M766782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can certainly issue a 'cp' command (if you are running UNIX/Linux) in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I would suggest using this func module instead - ARCHIVFILE_SERVER_TO_SERVER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is VERY straightforward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 19:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215793#M766782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T19:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy files on the application Server using coding in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215794#M766783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrsandbox9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: SrcFile type SAPB-SAPPFAD.&lt;/P&gt;&lt;P&gt;data: TargetFile type SAPB-SAPPFAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SrcFile = '/some_directory/original_file.txt'.&lt;/P&gt;&lt;P&gt;TargetFile = '/new_directory/new_file.txt'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ARCHIVFILE_SERVER_TO_SERVER'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    SOURCEPATH       = srcfile&lt;/P&gt;&lt;P&gt;    TARGETPATH       = targetfile&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LENGTH           =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   ERROR_FILE       = 1&lt;/P&gt;&lt;P&gt;   OTHERS           = 2&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 19:25:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215794#M766783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy files on the application Server using coding in report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215795#M766784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alexander&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As long as you have an RFC destination available between your application servers I usually use function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
EPS_FTP_GET or EPS_FTP_MGET
EPS_FTP_PUT or EPS_FTP_MPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The interface of these function modules is quite obvious.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to copy between different directories on the same server simply use 'NONE' as RFC destination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 20:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-copy-files-on-the-application-server-using-coding-in-report/m-p/3215795#M766784</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-01-08T20:15:37Z</dc:date>
    </item>
  </channel>
</rss>

