<?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: Read local folder, return filenames into internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192088#M1201565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RZL_READ_DIR_LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Feb 2009 06:00:02 GMT</pubDate>
    <dc:creator>GauthamV</dc:creator>
    <dc:date>2009-02-24T06:00:02Z</dc:date>
    <item>
      <title>Read local folder, return filenames into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192087#M1201564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume I have 3 files in c:\abc folder:&lt;/P&gt;&lt;P&gt;a1.xls&lt;/P&gt;&lt;P&gt;a2.xls&lt;/P&gt;&lt;P&gt;a6.xls&lt;/P&gt;&lt;P&gt;Is there a fm or code sample to pass in folder name (ie c:\abc) and returns a1.xls, a2.xls and a6.xls into internal table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 05:56:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192087#M1201564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T05:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Read local folder, return filenames into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192088#M1201565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RZL_READ_DIR_LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192088#M1201565</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2009-02-24T06:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read local folder, return filenames into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192089#M1201566</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;Go through these FMs:&lt;/P&gt;&lt;P&gt;TMP_GUI_DIRECTORY_LIST_FILES &lt;/P&gt;&lt;P&gt;TMP_GUI_READ_DIRECTORY&lt;/P&gt;&lt;P&gt;RZL_READ_DIR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do search on them, you will get the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192089#M1201566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read local folder, return filenames into internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192090#M1201567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Class &lt;STRONG&gt;CL_GUI_FRONTEND_SERVICES&lt;/STRONG&gt; Method &lt;STRONG&gt;DIRECTORY_LIST_FILES&lt;/STRONG&gt; to get list of file in a folder . FILE_TABLE will give the table with list of files &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab ,
        file(26) type c,
      end of itab.
data: tab type table of itab.

data : cnt type i.

CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;DIRECTORY_LIST_FILES
  EXPORTING
    DIRECTORY                   = 'C:\temp'
*    FILTER                      = '*.*'
*    FILES_ONLY                  =
*    DIRECTORIES_ONLY            =
  CHANGING
    FILE_TABLE                  = tab
    COUNT                       = cnt
*  EXCEPTIONS
*    CNTL_ERROR                  = 1
*    DIRECTORY_LIST_FILES_FAILED = 2
*    WRONG_PARAMETER             = 3
*    ERROR_NO_GUI                = 4
*    NOT_SUPPORTED_BY_GUI        = 5
*    others                      = 6
        .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2009 06:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-local-folder-return-filenames-into-internal-table/m-p/5192090#M1201567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-24T06:14:30Z</dc:date>
    </item>
  </channel>
</rss>

