<?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: Problem reading a directory on a server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027718#M1498917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you test this function by the SE37 at the address of the folder I get error NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the steering is \ \ aero-ccs-file00 \ SAPDEV \ FUSO \ Entry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 15:40:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-18T15:40:13Z</dc:date>
    <item>
      <title>Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027712#M1498911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning to all my problem is I have to read a file to upload information, the problem was I have no file name and I have to upload everything I files that are inside the folder, the file has a naming txt XXX #######. the first three values do not vary over the other are numerous and vary depending on the date and time, adding the program should work in a job and would like to know if I can to help see I get the name of the file that is inside the folder which is in a thanks and best served&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 14:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027712#M1498911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027713#M1498912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the presentation or application server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027713#M1498912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027714#M1498913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to put that in selection screen whatever file name to be read from folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that is not possible then you will need to move the uploaded file to some other folder'XXX' and keep always the one which is unread in ZZZ folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:04:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027714#M1498913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T15:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027715#M1498914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the porblem is like knowing that the files are directotio server Redeemer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027715#M1498914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T15:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027716#M1498915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please make it more clear -your doubt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027716#M1498915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T15:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027717#M1498916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To get the files from a directory in the server use FM RZL_READ_DIR_LOCAL. Then it's quite simple to loop at the results and get the file you're looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027717#M1498916</guid>
      <dc:creator>PedroGuarita</dc:creator>
      <dc:date>2010-06-18T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027718#M1498917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you test this function by the SE37 at the address of the folder I get error NOT_FOUND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the steering is \ \ aero-ccs-file00 \ SAPDEV \ FUSO \ Entry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 15:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027718#M1498917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-18T15:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027719#M1498918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running this from your PC, and not in background, you can use TMP_GUI_DIRECTORY_LIST_FILES.  It will give you file names up to 255 characters long.  If you need to run this in background you could try TMP_GUI_DIRECTORY_LIST_FILES but it only returns files up to 40 characters.  Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 17:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027719#M1498918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T17:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading a directory on a server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027720#M1498919</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;You can use &lt;STRONG&gt;EPS_GET_DIRECTORY_LISTING&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the code snippet as below :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA:   l_check_msg(50)  TYPE c,
          l_filemask       LIKE epsf-epsfilnam.

  CONCATENATE p_sysid '*' INTO l_filemask.

  CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
       EXPORTING
            dir_name               = wa_ztsifregi-pathname
            file_mask              = l_filemask
       TABLES
            dir_list               = i_files
       EXCEPTIONS
            invalid_eps_subdir     = 1
            sapgparam_failed       = 2
            build_directory_failed = 3
            no_authorization       = 4
            read_directory_failed  = 5
            too_many_read_errors   = 6
            empty_directory_list   = 7
            OTHERS                 = 8.
  IF sy-subrc NE 0.
    CASE sy-subrc.
      WHEN 1.
        l_check_msg = 'Invalid subdirectory'(005).
      WHEN 2.
        l_check_msg = 'EPS_GET_DIRECTORY_LISTING failed'(006).
      WHEN 3.
        l_check_msg = 'Build directory failed'(007).
      WHEN 4.
        l_check_msg = 'No authorization'(008).
      WHEN 5.
        l_check_msg = 'Read directory failed'(009).
      WHEN 6.
        l_check_msg = 'Too many read error'(010).
*      WHEN 7.
*        l_check_msg = 'Empty directory'(011).
      WHEN OTHERS.
        l_check_msg = 'Unexpected error from function module'(012).
    ENDCASE.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 17:54:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-reading-a-directory-on-a-server/m-p/7027720#M1498919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T17:54:05Z</dc:date>
    </item>
  </channel>
</rss>

