<?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 Performance issue in query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423265#M541136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this query in my program, it&amp;#146;s taking so much time to execute. Can you pls look at this query and tell me whats wrong with it. ITAB which is used in for all enteries has around 3000 records.   &lt;/P&gt;&lt;P&gt;    SELECT * FROM regup&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;             WHERE bukrs = itab-bukrs&lt;/P&gt;&lt;P&gt;               AND  belnr = itab-belnr&lt;/P&gt;&lt;P&gt;               AND  lifnr = itab-lifnr&lt;/P&gt;&lt;P&gt;               AND  gjahr = itab-gjahr&lt;/P&gt;&lt;P&gt;               AND  vblnr NE space.&lt;/P&gt;&lt;P&gt;Can you tell me how I can optimize this?&lt;/P&gt;&lt;P&gt;Your answers will be rewarded.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2007 19:26:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-22T19:26:49Z</dc:date>
    <item>
      <title>Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423265#M541136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this query in my program, it&amp;#146;s taking so much time to execute. Can you pls look at this query and tell me whats wrong with it. ITAB which is used in for all enteries has around 3000 records.   &lt;/P&gt;&lt;P&gt;    SELECT * FROM regup&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE itab1&lt;/P&gt;&lt;P&gt;              FOR ALL ENTRIES IN itab&lt;/P&gt;&lt;P&gt;             WHERE bukrs = itab-bukrs&lt;/P&gt;&lt;P&gt;               AND  belnr = itab-belnr&lt;/P&gt;&lt;P&gt;               AND  lifnr = itab-lifnr&lt;/P&gt;&lt;P&gt;               AND  gjahr = itab-gjahr&lt;/P&gt;&lt;P&gt;               AND  vblnr NE space.&lt;/P&gt;&lt;P&gt;Can you tell me how I can optimize this?&lt;/P&gt;&lt;P&gt;Your answers will be rewarded.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 19:26:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423265#M541136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T19:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423266#M541137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you sort ITAB by BUKRS BELNR LIFNR and GJAHR before doing this select.&lt;/P&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>Fri, 22 Jun 2007 19:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423266#M541137</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-06-22T19:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423267#M541138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with database -&amp;gt; how many records it has &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see ur code - the where condition does not have all primary key condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have huge data then you can't decrease ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 19:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423267#M541138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T19:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423268#M541139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rich:&lt;/P&gt;&lt;P&gt;I have sorted the itab, but no performance gain. REGUP is cluster table, is it becuase of this table.&lt;/P&gt;&lt;P&gt;Seshu:&lt;/P&gt;&lt;P&gt;This is what i require in where clause, I don't need all primary key's. Its taking some time 5 minutes on small selection.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 20:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423268#M541139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423269#M541140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not easy to decrease processing unless you have less data.&lt;/P&gt;&lt;P&gt;even you can not create secondary index since it is cluster table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 20:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423269#M541140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T20:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423270#M541141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to sorting the itab as Rich suggested, you should then delete adjacent duplicates from itab comparing bukrs belnr lifnr gjahr. This will create the smallest possible itab for selecting. if you need this table for other processing, create another work table and use it instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since you are not using an index, it will still take time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 20:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423270#M541141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423271#M541142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But there is no duplicate records in this itab. so no performance gain. I have executed se30 runtime analysis, it's using 95.2% of database. Any suggestions...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 21:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423271#M541142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T21:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423272#M541143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you want all fields from REGUP? Why select * ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 21:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423272#M541143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T21:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423273#M541144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 21:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423273#M541144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T21:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue in query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423274#M541145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any other way of calling this cluster table, so performance can be increased.&lt;/P&gt;&lt;P&gt;My report is taking 98.9% of database load, when i check it from SE30 transaction n taking so much time to execute, what can be the possible reason, so i decrease this database load.&lt;/P&gt;&lt;P&gt;Your answer will be rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 19:53:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-in-query/m-p/2423274#M541145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T19:53:14Z</dc:date>
    </item>
  </channel>
</rss>

