<?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 20000K FROM APPLICATION SERVER FILE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619119#M1280059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLOSING THREAD ALTHOUGH COULD NOT GET PROPER ANSWER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 04:31:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-15T04:31:46Z</dc:date>
    <item>
      <title>Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619107#M1280047</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;&lt;/P&gt;&lt;P&gt;I am reading data from appication server file.The amount of data in file is nearly 20000K.&lt;/P&gt;&lt;P&gt;What are the diffrenet steps i can incorporate to reduce the runtime of the program.&lt;/P&gt;&lt;P&gt;Few options i thought is:---&lt;/P&gt;&lt;P&gt;1&amp;gt; Use field symbols in loop and read statement.&lt;/P&gt;&lt;P&gt;2&amp;gt; Use field symbol in read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one doubt .....will the field symbols give better performance over the syntax internal table with header line in &lt;STRONG&gt;loop and read&lt;/STRONG&gt; statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*What can be done form programming side to &lt;STRONG&gt;+read&lt;/STRONG&gt;+ and then &lt;EM&gt;process&lt;/EM&gt; data and then &lt;EM&gt;again place&lt;/EM&gt; data back on application server, so that run time can be reduced*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619107#M1280047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619108#M1280048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should not uzse header lines anymore, but not for performance reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you compare is assigning field-symbols and INTO wa, the assigning is faster, if the table is&lt;/P&gt;&lt;P&gt;width.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT the main effect is the usage of BINARY SEARCH or Sorted or hashed table in the inner table.&lt;/P&gt;&lt;P&gt;If you forget this one, you performance will become very poor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:33:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619108#M1280048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619109#M1280049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am already doing the follwoing stuff in program:--&lt;/P&gt;&lt;P&gt;1&amp;gt; Read with binary search.&lt;/P&gt;&lt;P&gt;2&amp;gt; In program i am sorting the table before binary serach......if i use internal table of type sorted in my case will it improve my performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 08:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619109#M1280049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T08:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619110#M1280050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP at itab1
   READ TABLE itab2    BINARY SEARCH
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorted tables are not faster than BINARY SEARCH, but more convenient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must sort only itab2, not itab1.&lt;/P&gt;&lt;P&gt;And sort only once.&lt;/P&gt;&lt;P&gt;If you need a LOOP for itab2, because there is no 1:1 relation, then Sorted tables are much better.&lt;/P&gt;&lt;P&gt;If the relation is 1:1 and you can define a unique key for itab2, then a hash table is better and faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see pictures in that blog!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Measurements on internal tables: Reads and Loops:&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/12/runtimes-of-reads-and-loops-on-internal-tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 09:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619110#M1280050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T09:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619111#M1280051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we speed up :--&lt;/P&gt;&lt;P&gt;1&amp;gt; Reading the data data from dataset&lt;/P&gt;&lt;P&gt;2&amp;gt; Transfer the data to dataset&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 10:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619111#M1280051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T10:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619112#M1280052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can split it up into smaller chunks, that could help, but otherwise...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 13:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619112#M1280052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619113#M1280053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)  use field symbol&lt;/P&gt;&lt;P&gt;2 sort internal table,&lt;/P&gt;&lt;P&gt;3 then binary search the internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 13:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619113#M1280053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619114#M1280054</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;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; I am reading data from appication server file.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you talking about OPEN DATASET and READ DATASET?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the time consuming part? Have you made some analysis?&lt;/P&gt;&lt;P&gt;And could you post the results and the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without more information it is quite hard to help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 13:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619114#M1280054</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-05-19T13:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619115#M1280055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the data are on file you must read them from file and process them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are other options from which you can read faster, ... but if the data are not stored there, it makes no sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall, your action sounds like a one-time action, so just do it and it is sooner or later done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 15:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619115#M1280055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619116#M1280056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where are you experiencing a performance problem? Do you have 20 thousand, 20 million or 20 billion records in your 20000K file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dataset your_file_input.
open dataset your_file_output.

do.
  read dataset your_file.
 
  if sy-subrc ne 0.
    exit.
  endif.

  " Process your record
  Some complex logic goes here

  " Write your record
  transfer lv_record to your_file_output.
enddo.

close dataset your_file_input.
close dataset your_file_output.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 18:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619116#M1280056</guid>
      <dc:creator>former_member207438</dc:creator>
      <dc:date>2009-05-19T18:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619117#M1280057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello EDWARD,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing the same thing...................and teh number of record as in mentioned is 20000K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 03:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619117#M1280057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-20T03:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619118#M1280058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you make a trace and send the hitlist, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 10:38:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619118#M1280058</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2009-05-20T10:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Read 20000K FROM APPLICATION SERVER FILE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619119#M1280059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CLOSING THREAD ALTHOUGH COULD NOT GET PROPER ANSWER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 04:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-20000k-from-application-server-file/m-p/5619119#M1280059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-15T04:31:46Z</dc:date>
    </item>
  </channel>
</rss>

