<?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: Reading a directory from App.server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606289#M272038</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;try fm EPS_GET_DIRECTORY_LISTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2006 13:10:24 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2006-09-14T13:10:24Z</dc:date>
    <item>
      <title>Reading a directory from App.server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606288#M272037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I know there is a FM to read a directory from App.server&lt;/P&gt;&lt;P&gt;is RZL_READ_DIR_LOCAL and RZL_READ_DIR. It uses a structure FILE_TBL of type SALFLDIR.This contains a field called "Name" of 32 characters.Suppose if a file in App.server contains more than 32 characters will this FM reads that?I think it reads that but the extension of file or some part of file will miss.So after reading that if read from that file using read dataset which does't conatins extension because of size of that field will it read?...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body tell me What is the alternative for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 13:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606288#M272037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a directory from App.server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606289#M272038</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;try fm EPS_GET_DIRECTORY_LISTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 13:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606289#M272038</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-14T13:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a directory from App.server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606290#M272039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the below FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:  lcl_directory  TYPE char128,&lt;/P&gt;&lt;P&gt;  constants: c_mask          TYPE char9      VALUE ',&lt;STRONG&gt;.&lt;/STRONG&gt;,&lt;STRONG&gt;.&lt;/STRONG&gt;.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   lcl_directory  = ''/local/data/interface/A28/DM/OUT'.                              &lt;/P&gt;&lt;P&gt;   CALL FUNCTION '/SAPDMC/LSM_F4_SERVER_FILE'              &lt;/P&gt;&lt;P&gt;     EXPORTING                                             &lt;/P&gt;&lt;P&gt;       directory        = lcl_directory                    &lt;/P&gt;&lt;P&gt;       filemask         = c_mask                           &lt;/P&gt;&lt;P&gt;     IMPORTING                                             &lt;/P&gt;&lt;P&gt;       serverfile       = p_f2                             &lt;/P&gt;&lt;P&gt;     EXCEPTIONS                                            &lt;/P&gt;&lt;P&gt;       canceled_by_user = 1                                &lt;/P&gt;&lt;P&gt;       OTHERS           = 2.                               &lt;/P&gt;&lt;P&gt;   IF sy-subrc &amp;lt;&amp;gt; 0.                                       &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   MESSAGE e000(zmm) WITH text-039.                     &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   flg_app = 'X'.                                       &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   ENDIF.                                                  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 13:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606290#M272039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T13:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a directory from App.server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606291#M272040</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 the follow code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zdirtest.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA lv_dir TYPE rsmrgstr-path VALUE '/usr/sap/trans/data'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: wa_files  TYPE rsfillst,&lt;/P&gt;&lt;P&gt;      it_files  LIKE TABLE OF wa_files.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SUBST_GET_FILE_LIST'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      dirname      = lv_dir&lt;/P&gt;&lt;P&gt;      filenm       = '*'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      file_list    = it_files&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      access_error = 1&lt;/P&gt;&lt;P&gt;      OTHERS       = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  IF  sy-subrc  &amp;lt;&amp;gt;   0.&lt;/P&gt;&lt;P&gt;    WRITE /1 'Error! :-('.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    LOOP AT it_files INTO wa_files.&lt;/P&gt;&lt;P&gt;      WRITE: /1 wa_files-name,&lt;/P&gt;&lt;P&gt;                wa_files-len.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 13:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606291#M272040</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-14T13:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a directory from App.server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606292#M272041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 14:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-a-directory-from-app-server/m-p/1606292#M272041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-14T14:00:35Z</dc:date>
    </item>
  </channel>
</rss>

