<?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 problem with rename command in ftp_command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275137#M494651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing a problem in renaming a file by rename command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how i am calling the fm ftp_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle        = g_handle&lt;/P&gt;&lt;P&gt;      command       = 'RENAME l_templine_file l_templine_file1'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data          = l_i_temp_line&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      tcpip_error   = 1&lt;/P&gt;&lt;P&gt;      command_error = 2&lt;/P&gt;&lt;P&gt;      data_error    = 3&lt;/P&gt;&lt;P&gt;      OTHERS        = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;here l_templine_file   - dev00227.header.tmp   &lt;/P&gt;&lt;P&gt;l_templine_file1 - dev00227.header.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fm is failing that the error meassage is FTP subcommand  error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u suggest where i am going wrong in this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 05:34:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T05:34:09Z</dc:date>
    <item>
      <title>problem with rename command in ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275137#M494651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am facing a problem in renaming a file by rename command...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how i am calling the fm ftp_command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      handle        = g_handle&lt;/P&gt;&lt;P&gt;      command       = 'RENAME l_templine_file l_templine_file1'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data          = l_i_temp_line&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      tcpip_error   = 1&lt;/P&gt;&lt;P&gt;      command_error = 2&lt;/P&gt;&lt;P&gt;      data_error    = 3&lt;/P&gt;&lt;P&gt;      OTHERS        = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;here l_templine_file   - dev00227.header.tmp   &lt;/P&gt;&lt;P&gt;l_templine_file1 - dev00227.header.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the fm is failing that the error meassage is FTP subcommand  error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u suggest where i am going wrong in this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 05:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275137#M494651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T05:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem with rename command in ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275138#M494652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be the command you are passing is incorrect syntax..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the values like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_templine_file =  'c:\dev00227.header.tmp' " this should be with path'&lt;/P&gt;&lt;P&gt;l_templine_file1 = 'dev00227.header.txt'" this is just the name of file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not worked..then Try writing in small letters//&lt;/P&gt;&lt;P&gt;write &lt;/P&gt;&lt;P&gt;command = 'rename l_templinefile l_templine1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful&lt;/P&gt;&lt;P&gt;Hope this solves..&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nazeer shaik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nazeer shaik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        nazeer shaik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 05:56:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275138#M494652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T05:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem with rename command in ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275139#M494653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE  ' rename ' G_FILE_NAME G_FILE_NAME_NEW INTO&lt;/P&gt;&lt;P&gt;                    G_CMND SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      HANDLE        = G_HANDLE&lt;/P&gt;&lt;P&gt;      COMMAND       = G_CMND&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      DATA          = MTAB_DATA&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      COMMAND_ERROR = 1&lt;/P&gt;&lt;P&gt;      TCPIP_ERROR   = 2.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    P_ERROR = C_X.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the complete path for file names in G_FILE_NAME  and G_FILE_NAME_NEW &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will resolve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if needful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 06:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275139#M494653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T06:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: problem with rename command in ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275140#M494654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u tell me is it a good method to run cd command before rename command..(in cd i will give the directory where my file is stored ) and then in the rename command i can give just the old and new file names(withot path name)...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 07:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275140#M494654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T07:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem with rename command in ftp_command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275141#M494655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better to use 'cd' and 'lcd' commands to set remote folder path and local folder path so that you can give directly(only) file name instead of giving complete path for file name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 09:08:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rename-command-in-ftp-command/m-p/2275141#M494655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T09:08:34Z</dc:date>
    </item>
  </channel>
</rss>

