<?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: Ftp file list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226468#M769582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your answer, but is there a function that gives an internal table with file list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2008 16:43:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-02T16:43:19Z</dc:date>
    <item>
      <title>Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226465#M769579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallo everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to read a directory on an ftp server to know which files are stored...&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226465#M769579</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226466#M769580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check test program RSFTP002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226466#M769580</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-02T16:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226467#M769581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this function module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RZL_READ_DIR_LOCAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226467#M769581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T16:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226468#M769582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your answer, but is there a function that gives an internal table with file list?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226468#M769582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T16:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226469#M769583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bu FM RZL_READ_DIR_LOCAL seems to be useful just for local directory, while I need to read an ftp directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226469#M769583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T16:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226470#M769584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you take a look at the program mentioned above, you will see this coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if cmd1 ne ' '.
  call function 'FTP_COMMAND'
    exporting
      handle        = hdl
      command       = cmd1
      compress      = compress
    tables
      data          = result
    exceptions
      command_error = 1
      tcpip_error   = 2.
  loop at result.
    write at / result-line.
  endloop.
  refresh result.
endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RESULT internal table will have the list of documents,  all you need to do is enter the correct command on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, if your ftp destination url looks like this......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ftp://100.200.123.456/documents/
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then enter the following on the selection screen of the test program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Host                              100.200.123.456
Command 1                    dir documents
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this program and you will see the list of files under this directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rich Heilman on Jan 2, 2008 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 16:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226470#M769584</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-02T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226471#M769585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;I had seen how the function works, anyway the table has no structure, no it is not very east to get the name of the files stored in the table itsself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 17:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226471#M769585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T17:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226472#M769586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's right the table has no structure, which means that you will need to parse out the file names, using fixed length offsets and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 17:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226472#M769586</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2008-01-02T17:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp file list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226473#M769587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;your help is always precious.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2008 10:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp-file-list/m-p/3226473#M769587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-03T10:40:16Z</dc:date>
    </item>
  </channel>
</rss>

