<?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: Performance issue wid Select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876225#M1139845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Poornima,&lt;/P&gt;&lt;P&gt;Table KNVV Customer Master Sales Data &amp;amp; where clause is using index key fields. &lt;/P&gt;&lt;P&gt;Is s_kunnr variable of selection screen field? &lt;/P&gt;&lt;P&gt;	If yes then you should have used where kunnr IN s_kunnr  (not the equal sign = ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gt_int an internal table should be used as 'for all entries', pls ref link for code example-&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3a1f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3a1f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;search for word 'Tabular Conditions'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you modify select query let us know how is the result and will assist if any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nishikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jan 2009 01:38:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-02T01:38:50Z</dc:date>
    <item>
      <title>Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876219#M1139839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a performance issue with the below select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select kunnr vtweg vtwku &lt;/P&gt;&lt;P&gt;from knvv into gt_knvv where kunnr = s_kunnr&lt;/P&gt;&lt;P&gt;                                        and vkorg = gt_int-vkorg&lt;/P&gt;&lt;P&gt;                                        and vtweg = gt_int-vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gt_int is sorted by the primary keys and fields in "where" are in proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But since there is no value in s_kunnr , the above statement is consuming 95% of the execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one of you suggest how to improve the performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sindhuri Vajjala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 10:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876219#M1139839</guid>
      <dc:creator>former_member201364</dc:creator>
      <dc:date>2008-12-19T10:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876220#M1139840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u are selecting large no of data that why it take more time.&lt;/P&gt;&lt;P&gt;to improve performance you can check with secondary index also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 10:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876220#M1139840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T10:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876221#M1139841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you ever hear about indexes ??? It is not more complicated than a telephone, know the name&lt;/P&gt;&lt;P&gt;get the telephone, know only first name and you will not find anything ... in reasonable time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not see you table knw, but check SE11, how many records are in this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the key fields&lt;/P&gt;&lt;P&gt;are there other indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which fields of indexes appear in your where clause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 11:14:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876221#M1139841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T11:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876222#M1139842</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;first of all check whether u are using key fields, indexes or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2008 11:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876222#M1139842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-19T11:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876223#M1139843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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; Hello All,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; There is a performance issue with the below select query.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Select kunnr vtweg vtwku &lt;/P&gt;&lt;P&gt;&amp;gt; from knvv into gt_knvv where kunnr = s_kunnr&lt;/P&gt;&lt;P&gt;&amp;gt;                                         and vkorg = gt_int-vkorg&lt;/P&gt;&lt;P&gt;&amp;gt;                                         and vtweg = gt_int-vtweg.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Gt_int is sorted by the primary keys and fields in "where" are in proper order.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; But since there is no value in s_kunnr , the above statement is consuming 95% of the execution time.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Can any one of you suggest how to improve the performance?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Sindhuri Vajjala&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question, what is gt_int? Do you loop at gt_int?&lt;/P&gt;&lt;P&gt;I'm asking this because i can not see any for all entries in the select statement and wondering where does gt_int value came from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 03:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876223#M1139843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-23T03:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876224#M1139844</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;The issue is with your where condition vkorg = gt_int-vkorg and vtweg = gt_int-vtweg only. Instead GT_INT use some variables or constants in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Balaji.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Dec 2008 07:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876224#M1139844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-31T07:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876225#M1139845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Poornima,&lt;/P&gt;&lt;P&gt;Table KNVV Customer Master Sales Data &amp;amp; where clause is using index key fields. &lt;/P&gt;&lt;P&gt;Is s_kunnr variable of selection screen field? &lt;/P&gt;&lt;P&gt;	If yes then you should have used where kunnr IN s_kunnr  (not the equal sign = ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gt_int an internal table should be used as 'for all entries', pls ref link for code example-&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3a1f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3a1f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;search for word 'Tabular Conditions'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you modify select query let us know how is the result and will assist if any issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nishikant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 01:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876225#M1139845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T01:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876226#M1139846</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 IN operator with S_KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is GT_INT is internal Table with Header Line? If yes, does Header Line got some values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using GT_INT fields , better use some temp var's and transfer the values in that Temp var's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 07:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876226#M1139846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T07:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876227#M1139847</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;1. When ever u r using select options use IN in where condition.&lt;/P&gt;&lt;P&gt;2. FInd out what r key fileds in the table and filter selection by adding all possible fields.&lt;/P&gt;&lt;P&gt;3. INTO TABLE clause is mandatory. &lt;/P&gt;&lt;P&gt;4. try to make selection options and parameters using in this SELECT mandatory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 09:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876227#M1139847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T09:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue wid Select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876228#M1139848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Poornima,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow up with Siegfried Boes answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2009 10:53:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-wid-select-query/m-p/4876228#M1139848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-02T10:53:22Z</dc:date>
    </item>
  </channel>
</rss>

