<?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: Read a file from application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024992#M961922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use code given below.it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET FNAME FOR inPUT in text mode encoding default.
LOOP AT TAB INTO LIN.  *** here give index number or condition
  READ DATASET FNAME INTO LIN.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  WRITE: / LIN-COL1, LIN-COL2.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the above code use condition or index with LOOP &amp;amp; read particular line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jun 2008 08:45:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-23T08:45:16Z</dc:date>
    <item>
      <title>Read a file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024989#M961919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we read a particular row from a file in the appn server.I dont want to read the whole file but just need to read contents of a row into a string.It is a .xls file.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ankit Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024989#M961919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read a file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024990#M961920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ankit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am not sure about we can read a perticuler line from App server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to read only entire file first then do nesserry functions by reading perticuler line by using &lt;STRONG&gt;open dataset&lt;/STRONG&gt; command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024990#M961920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Read a file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024991#M961921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its not possible..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024991#M961921</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-06-23T08:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Read a file from application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024992#M961922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use code given below.it will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPEN DATASET FNAME FOR inPUT in text mode encoding default.
LOOP AT TAB INTO LIN.  *** here give index number or condition
  READ DATASET FNAME INTO LIN.
  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    EXIT.
  ENDIF.
  WRITE: / LIN-COL1, LIN-COL2.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the above code use condition or index with LOOP &amp;amp; read particular line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 08:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-a-file-from-application-server/m-p/4024992#M961922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T08:45:16Z</dc:date>
    </item>
  </channel>
</rss>

