<?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: Scan application server directory to read a file by pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048439#M1899768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noufal,&lt;/P&gt;&lt;P&gt;Problem with this function module is the return parameter directory list which has only 40 Char limit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2015 06:44:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-04-23T06:44:37Z</dc:date>
    <item>
      <title>Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048436#M1899765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,er &lt;/P&gt;&lt;P&gt;I am trying to search for a file which is on application server&lt;/P&gt;&lt;P&gt;File Name: payroll_1000_date_timestamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since i will not know the timestamp on the file i will have to search the file in the folder like this: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;payroll_1000_date_*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried almost all below techniques but none of them work in background mode:&lt;/P&gt;&lt;P&gt;1.F.M EPS2_GET_DIRECTORY_LISTING&lt;/P&gt;&lt;P&gt;2.EPS_GET_DIRECTORY_LISTING &lt;/P&gt;&lt;P&gt;3.Perform&amp;nbsp; DIRECTORY_CONTENTS_GET from F.M /SAPDMC/LSM_F4_SERVER_FILE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate if someone can highlight on a way i can do this search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module or any utility which can run in background and give me all files present on app. server ? I can than filter it down&lt;/P&gt;&lt;P&gt;later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048436#M1899765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048437#M1899766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bhanu,&lt;/P&gt;&lt;P&gt;did you try the following??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXPORTING&lt;/P&gt;&lt;P&gt; dir_name = gv_folder "'\usr\sap\ECD\SYS\global\chase\inbound'&lt;/P&gt;&lt;P&gt; file_mask = '&lt;SPAN style="color: #333333; font-size: 13.3333330154419px;"&gt;payroll_1000_date_&lt;/SPAN&gt;*'&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt; dir_list = lt_dir_list&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXCEPTIONS&lt;/P&gt;&lt;P&gt; invalid_eps_subdir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1&lt;/P&gt;&lt;P&gt; sapgparam_failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; build_directory_failed = 3&lt;/P&gt;&lt;P&gt; no_authorization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read_directory_failed&amp;nbsp; = 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; too_many_read_errors&amp;nbsp;&amp;nbsp; = 6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; empty_directory_list&amp;nbsp;&amp;nbsp; = 7&lt;/P&gt;&lt;P&gt; OTHERS = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048437#M1899766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048438#M1899767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048438#M1899767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048439#M1899768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noufal,&lt;/P&gt;&lt;P&gt;Problem with this function module is the return parameter directory list which has only 40 Char limit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048439#M1899768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048440#M1899769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;i mentioned about the background mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048440#M1899769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048441#M1899770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If no other FMs are present, I think you need to make a program to use this Fm and run that as background job&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2015 06:47:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048441#M1899770</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-23T06:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048442#M1899771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048442#M1899771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-24T16:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048443#M1899772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use function module ISU_M_L_FOLDER_SERVER?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use this to retrieve the directory list (will handle up to 75 character file names) and then scan the list for entries of type "f" and the file name mask we are searching for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K--&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 15:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048443#M1899772</guid>
      <dc:creator>kathryn_mcgallicher</dc:creator>
      <dc:date>2015-04-27T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scan application server directory to read a file by pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048444#M1899773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Experts,&lt;/P&gt;&lt;P&gt;It was my bad the function module &lt;SPAN style="color: #333333; font-size: 12px;"&gt;EPS2_GET_DIRECTORY_LISTING can be used in background , there are no issues with it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I am closing the thread &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Bhanu Malik&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2015 21:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/scan-application-server-directory-to-read-a-file-by-pattern/m-p/11048444#M1899773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-28T21:22:11Z</dc:date>
    </item>
  </channel>
</rss>

