<?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: runtime performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937933#M692525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank for reply.&lt;/P&gt;&lt;P&gt;my coding part something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B1 H2 B3 B4 B5 B6 B7&lt;/P&gt;&lt;P&gt;FROM BSAS INTO TABLE T_BSAS&lt;/P&gt;&lt;P&gt;WHERE B1 = S_BUKRS&lt;/P&gt;&lt;P&gt;AND H2 IN ('0040000110', '0040000120')&lt;/P&gt;&lt;P&gt;AND B3 IN S_PDATE&lt;/P&gt;&lt;P&gt;AND ( B6 = 'DR' OR B6 ='RV' OR B6 = 'DA' OR B6 = 'SA' OR B6 = 'KS' OR B6 = 'TA' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the record in the database is huge and how can i improve the performance. any other method to fetch record more faster?&lt;/P&gt;&lt;P&gt;pls advise. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 02:53:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-22T02:53:01Z</dc:date>
    <item>
      <title>runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937931#M692523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am new to abap programming. &lt;/P&gt;&lt;P&gt;Here i would like to ask what is the suggested method to retrive large amount of record from database. I spend a lot of time when fetching record from database, more than 30min. i try to do performance tunning but the result still not improve.&lt;/P&gt;&lt;P&gt;please advise.&lt;/P&gt;&lt;P&gt;thank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 02:33:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937931#M692523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T02:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937932#M692524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you paste your code we can tell you what may be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 02:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937932#M692524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T02:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937933#M692525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank for reply.&lt;/P&gt;&lt;P&gt;my coding part something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B1 H2 B3 B4 B5 B6 B7&lt;/P&gt;&lt;P&gt;FROM BSAS INTO TABLE T_BSAS&lt;/P&gt;&lt;P&gt;WHERE B1 = S_BUKRS&lt;/P&gt;&lt;P&gt;AND H2 IN ('0040000110', '0040000120')&lt;/P&gt;&lt;P&gt;AND B3 IN S_PDATE&lt;/P&gt;&lt;P&gt;AND ( B6 = 'DR' OR B6 ='RV' OR B6 = 'DA' OR B6 = 'SA' OR B6 = 'KS' OR B6 = 'TA' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the record in the database is huge and how can i improve the performance. any other method to fetch record more faster?&lt;/P&gt;&lt;P&gt;pls advise. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 02:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937933#M692525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T02:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937934#M692526</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;Can't you pass all the key fields to this table in WHERE clause.&lt;/P&gt;&lt;P&gt;This table will have huge data at any point of time.&lt;/P&gt;&lt;P&gt;So if you don't have other key fields value you can't do much in that case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 02:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937934#M692526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T02:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937935#M692527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;meaning that i need to be more specified in the WHERE clause?&lt;/P&gt;&lt;P&gt;by doing this, will increase preformance or not?&lt;/P&gt;&lt;P&gt;pls advise.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 03:05:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937935#M692527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T03:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937936#M692528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. You are right.&lt;/P&gt;&lt;P&gt;This will definately improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 03:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937936#M692528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T03:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937937#M692529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if you feel the required selection can't be modified with the key fields, you can create INDEXS on the non-key fields at database level which you are using in 'WHERE' clause, this will definitely reduce the selection time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ali S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 09:55:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937937#M692529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T09:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937938#M692530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, if you feel the required selection can't be modified with the key fields, you can create INDEXS on the non-key fields at database level which you are using in 'WHERE' clause, this will definitely reduce the selection time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ali S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 09:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937938#M692530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T09:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937939#M692531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean create INDEXES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ali S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 09:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937939#M692531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T09:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937940#M692532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best not to create indexes - would you post your actual ABAP code please? We could do better if we could see the data dictionary fields in the WHERE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 13:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937940#M692532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937941#M692533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing you can do to your code is change your B6= to IN. &lt;/P&gt;&lt;P&gt;So it reads:&lt;/P&gt;&lt;P&gt;  AND B6 IN ('DR', 'RV', 'DA', 'SA', 'KS', 'TA').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a huge table, Bukrs is part of the primary key but I don't know what your other fields are. I think though, it is using the primary index and probably scanning the whole table/index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary index would definitely help but you need someone to help determine the index fields and the sequence of the fields in the index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 22:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937941#M692533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T22:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937942#M692534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;i am interested in what you suggest.&lt;/P&gt;&lt;P&gt;can u give me an example for how to create indexex?&lt;/P&gt;&lt;P&gt;pls advise. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 01:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937942#M692534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T01:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937943#M692535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not recommended that you create index on BSAS without considering many factors as it very commanly used table and creating index will again increase the space in DB,&lt;/P&gt;&lt;P&gt;Below is the documentation on how to create index&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cc/7c58b369022e46b629bdd93d705c8c/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cc/7c58b369022e46b629bdd93d705c8c/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 01:26:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937943#M692535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T01:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937944#M692536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One more thing Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use IN list and not OR conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT B1 H2 B3 B4 B5 B6 B7
FROM BSAS INTO TABLE T_BSAS
WHERE B1 = S_BUKRS
AND H2 IN ('0040000110', '0040000120')
AND B3 IN S_PDATE
*AND ( B6 = 'DR' OR B6 ='RV' OR B6 = 'DA' OR B6 = 'SA' OR B6 = 'KS' OR B6 = 'TA' ).
AND B6 IN ('DR', 'RV', 'DA', 'SA', 'KS', 'TA').
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe in this query &amp;lt;b&amp;gt;Primary Index&amp;lt;/b&amp;gt; is already being used since you are using 2 key fields in correct sequence in where clause. I am not sure whether this field B3 is AUGDT or not. If it is then you are using 3 key fields in where clause which should trigger using Primary Index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can check in ST05 whether it is being used or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 02:24:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937944#M692536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T02:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937945#M692537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may not have access to create index, if this is so, you need someone from your Basis team if you don't have a performance team, to run ST05  and DB05 and it will show you how the statement is intepreted and how it will read the data.  &lt;/P&gt;&lt;P&gt;Those people will know how to use these TCodes and they will have access to create the index.&lt;/P&gt;&lt;P&gt;The index must be created correctly with the fields in the correct order, otherwise it will not work properly and may be worse than not having one. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 04:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937945#M692537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T04:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: runtime performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937946#M692538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please use  SQL trace:&lt;/P&gt;&lt;P&gt;/people/siegfried.boes/blog/2007/09/05/the-sql-trace-st05-150-quick-and-easy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell us your total SQL time and the duration for the Top 3 in the SQL Summary.&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, 23 Oct 2007 12:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/runtime-performance/m-p/2937946#M692538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T12:24:21Z</dc:date>
    </item>
  </channel>
</rss>

