<?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 delete file on FTP Server using ABAP command? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052222#M968621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this in some of my old code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delete the existing file &lt;/P&gt;&lt;P&gt;CONCATENATE 'del' ftpfile1 INTO delfile1 SEPARATED BY SPACE. &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 = hdl &lt;/P&gt;&lt;P&gt;command = delfile1&lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;data = result &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;&lt;/P&gt;&lt;P&gt;*End of deleting the existing file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's just 'del' to delete the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 12:42:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-10T12:42:46Z</dc:date>
    <item>
      <title>How to delete file on FTP Server using ABAP command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052220#M968619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have connect FTP server and want to delete one file on FTP server,&lt;/P&gt;&lt;P&gt;But when  I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data lv_command(50) type c.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lv_command = 'DELETE test.txt'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CALL FUNCTION 'FTP_COMMAND'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXPORTING&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;handle        = p_handle&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;command   = lv_command&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;TABLES&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;data             = lt_ftp_result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;EXCEPTIONS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;tcpip_error   = 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;command_error = 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;data_error    = 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;OTHERS     = 4.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sy-subrc = 2,  callled 'Invalid Comand'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try other command for example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELE test.txt&lt;/P&gt;&lt;P&gt;MDELETE test.txt&lt;/P&gt;&lt;P&gt;all the above commands are have a result : Invalid command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I delete FTP file use ABAP?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 02:30:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052220#M968619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T02:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file on FTP Server using ABAP command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052221#M968620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could any gurus can help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 10:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052221#M968620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete file on FTP Server using ABAP command?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052222#M968621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this in some of my old code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Delete the existing file &lt;/P&gt;&lt;P&gt;CONCATENATE 'del' ftpfile1 INTO delfile1 SEPARATED BY SPACE. &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 = hdl &lt;/P&gt;&lt;P&gt;command = delfile1&lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;data = result &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;&lt;/P&gt;&lt;P&gt;*End of deleting the existing file &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's just 'del' to delete the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 12:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-file-on-ftp-server-using-abap-command/m-p/4052222#M968621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T12:42:46Z</dc:date>
    </item>
  </channel>
</rss>

