<?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: Application layer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813377#M657774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;Transfer statement to transfer data from appl server to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2007 14:04:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-27T14:04:51Z</dc:date>
    <item>
      <title>Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813374#M657771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Professional plz ans this query :&lt;/P&gt;&lt;P&gt;         how can we read all the files from a specific directory on application server &lt;/P&gt;&lt;P&gt;         say for example : &lt;/P&gt;&lt;P&gt;          "c:\usr\sap\id3\dvebmgs00\data" under this directory there 3 files&lt;/P&gt;&lt;P&gt;             1. file1.txt&lt;/P&gt;&lt;P&gt;             2. file2.txt&lt;/P&gt;&lt;P&gt;             3. file3.txt&lt;/P&gt;&lt;P&gt;         Now i have to read all the file names into my program how can i do that.&lt;/P&gt;&lt;P&gt;Plzzzz give me the best answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813374#M657771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T14:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813375#M657772</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;Please check this threads for solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2078320"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="246732"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;SImha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813375#M657772</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-09-27T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813376#M657773</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 transaction &amp;lt;b&amp;gt;AL11&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;pls reward if helpful&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813376#M657773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813377#M657774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;/P&gt;&lt;P&gt;Transfer statement to transfer data from appl server to internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813377#M657774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T14:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813378#M657775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: begin of itab occurs 0,
      rec(1000) type c,
      end of itab.
data: wa(1000) type c.

data: p_file type localfile.
data: ifile type table of  salfldir with header line.

parameters: p_path type salfile-longname
                    default '/usr/sap/TST/DVEBMGS01/data/'.

call function 'RZL_READ_DIR_LOCAL'
     exporting
          name           = p_path
     tables
          file_tbl       = ifile
     exceptions
          argument_error = 1
          not_found      = 2
          others         = 3.

loop at ifile.
  perform read_file.
endloop.

*---------------------------------------------------------------------*
*       FORM read_file                                                *
*---------------------------------------------------------------------*
form read_file.

  concatenate p_path ifile-name into p_file.

  clear itab.  refresh itab.
  open dataset p_file for input in text mode.
  if sy-subrc = 0.
    do.
      read dataset p_file into wa.
      if sy-subrc &amp;lt;&amp;gt; 0.
        exit.
      endif.
      itab-rec = wa.
      append itab.
    enddo.
  endif.
  close dataset p_file.

  loop at itab.
    write:/ itab.
  endloop.

endform.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813378#M657775</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-09-27T14:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Application layer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813379#M657776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use&amp;lt;b&amp;gt; AL11&amp;lt;/b&amp;gt; Transaction to see the files on Application server.&lt;/P&gt;&lt;P&gt;or use the &lt;/P&gt;&lt;P&gt;OPENDATASET...&lt;/P&gt;&lt;P&gt;READ DATASET...&lt;/P&gt;&lt;P&gt;CLOSE DATASET...&lt;/P&gt;&lt;P&gt;to move the files to an internal table and to display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CG3Y&amp;lt;/b&amp;gt; Transaction to downlaod all the fiels to presentation server from application server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2007 14:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/application-layer/m-p/2813379#M657776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-27T14:06:31Z</dc:date>
    </item>
  </channel>
</rss>

