<?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: Retrieve files from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877412#M1324353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;pa_dir&lt;/STRONG&gt; here is an Application Server path like i.e &lt;STRONG&gt;/usr/sap/trans&lt;/STRONG&gt; . It's case sensitive so please ensure that you give right name.&lt;/P&gt;&lt;P&gt;It will return all files in that path in table parameter &lt;STRONG&gt;dir_list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 11:12:52 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-07-27T11:12:52Z</dc:date>
    <item>
      <title>Retrieve files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877409#M1324350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SDNites,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to retrieve all the files from the application server corecponding to a predefined path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using FM RZL_READ_DIR_LOCAL and am getting the output but one of my file name length exceeds the limit set of 32 chars and hence does not retrieve the entire file name. My file name lenth is 36 chars. Can someone help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating custom FM of this standard FM but it does't work as there is some SAP system statement,&lt;/P&gt;&lt;P&gt;  CALL 'ALERTS'  ID 'ADMODE'       FIELD AD_RZL&lt;/P&gt;&lt;P&gt;                 ID 'OPCODE'       FIELD RZL_OP_RD_DIR&lt;/P&gt;&lt;P&gt;                 ID 'FILE_NAME'    FIELD FULL_NAME&lt;/P&gt;&lt;P&gt;                 ID 'DIR_TBL'      FIELD LINE_TBL-&lt;STRONG&gt;SYS&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me in resolving the above specified issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877409#M1324350</guid>
      <dc:creator>itabhishek9</dc:creator>
      <dc:date>2009-07-27T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877410#M1324351</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;Use below snippet. You will get up to 40 char path name&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: pa_dir TYPE epsf-epsdirnam VISIBLE LENGTH 60 OBLIGATORY,  "max 60 chars as input path

DATA: BEGIN OF dir_list OCCURS 0.
        INCLUDE STRUCTURE epsfili.
DATA END OF dir_list.

CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      dir_name               = pa_dir
    TABLES
      dir_list               = dir_list       "here is your result set, it will return max 40char dir name, so will suffice for you
    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 &amp;lt;&amp;gt; 0.
    MESSAGE 'No such directory' TYPE 'I' DISPLAY LIKE 'E'.
    LEAVE TO SCREEN 0.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 10:47:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877410#M1324351</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-07-27T10:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877411#M1324352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the repy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am entering my directory physaical path but still am not getting any values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 11:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877411#M1324352</guid>
      <dc:creator>itabhishek9</dc:creator>
      <dc:date>2009-07-27T11:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve files from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877412#M1324353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;pa_dir&lt;/STRONG&gt; here is an Application Server path like i.e &lt;STRONG&gt;/usr/sap/trans&lt;/STRONG&gt; . It's case sensitive so please ensure that you give right name.&lt;/P&gt;&lt;P&gt;It will return all files in that path in table parameter &lt;STRONG&gt;dir_list&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 11:12:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-files-from-application-server/m-p/5877412#M1324353</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-07-27T11:12:52Z</dc:date>
    </item>
  </channel>
</rss>

