<?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 Command Error in FTP_COPY function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377117#M1402813</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to transfer file to non-sap server and I am using function modules FTP_CONNECT and FTP_COPY to do the same. FTP_CONNECT establishes connection to server but FTP_COPY fails with raising exception COMMAND_ERROR (CERROR = 2). We are unable to trace why exactly this exception is raised and what is the root cause for it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody used these function modules to transfer file? Any experience or hints on mentioned error? Any kindly is very much appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Nov 2009 17:28:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-19T17:28:37Z</dc:date>
    <item>
      <title>Command Error in FTP_COPY function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377117#M1402813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to transfer file to non-sap server and I am using function modules FTP_CONNECT and FTP_COPY to do the same. FTP_CONNECT establishes connection to server but FTP_COPY fails with raising exception COMMAND_ERROR (CERROR = 2). We are unable to trace why exactly this exception is raised and what is the root cause for it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody used these function modules to transfer file? Any experience or hints on mentioned error? Any kindly is very much appreciated. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 17:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377117#M1402813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Command Error in FTP_COPY function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377118#M1402814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COMMAND_ERROR often means that the syntax of the FTP command is not correct and therefore the command fails.&lt;/P&gt;&lt;P&gt;I suggest that you first try the command at the prompt manually to see if is works, with the same user credentials (sidadm user).&lt;/P&gt;&lt;P&gt;If you have no OS access ask your basis guys to test the FTP maybe there is a security problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also pass the handle parameter from the FTP_CONNECT function to the FTP_COPY function correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2009 20:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377118#M1402814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-19T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Command Error in FTP_COPY function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377119#M1402815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Wim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. Inside FM FTP_COPY there is call to 'FTP_COPY' (see below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;SET EXTENDED CHECK OFF.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FTP_COPY' DESTINATION FTP_HANDLES-DESTINATION&lt;/P&gt;&lt;P&gt;       EXPORTING HANDLES = HX-CONTROL FILES = FILE_SOURCE&lt;/P&gt;&lt;P&gt;                 HANDLED = FTP_HANDLES-CONTROL FILED = FILE_DESTINATION&lt;/P&gt;&lt;P&gt;       IMPORTING ERROR = CERROR&lt;/P&gt;&lt;P&gt;       TABLES DATA = DATA.&lt;/P&gt;&lt;P&gt;SET EXTENDED CHECK ON.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But while I am debugging my ABAP program, it doesn't step into 'FTP_COPY'. Instead it goes directly to next line in FM. Whatever command error I am getting, its inside occurring inside 'FTP_COPY'. But I cannot go inside it while debugging. Any ideas why? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2009 19:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377119#M1402815</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-20T19:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Command Error in FTP_COPY function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377120#M1402816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you use SAPFTP as RFC destination ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you also can do is take a look at the following SAP test programs who use the same function modules (FTP_CONNECT, FTP_COPY, ...):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; RSFTP003                               FTP put / get Test&lt;/P&gt;&lt;P&gt; RSFTP004                               FTP Copy&lt;/P&gt;&lt;P&gt; RSFTP006                               FTP command list&lt;/P&gt;&lt;P&gt; RSFTP007                               Test FB:FTP_SERVER_TO_R3 / FTP_R3_TO_SERVER&lt;/P&gt;&lt;P&gt; RSFTP009                               Test FTP put with Verify&lt;/P&gt;&lt;P&gt; RSFTP011                               FTP Copy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have always used these programs as a reference for FTP programmation with success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Nov 2009 11:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/command-error-in-ftp-copy-function-module/m-p/6377120#M1402816</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-21T11:06:50Z</dc:date>
    </item>
  </channel>
</rss>

