<?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: Improve Performance  for this select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555131#M251500</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;Check whether your internal table i_msku contains only the fields kunnr werks and matnr.Otherwise use as following.&lt;/P&gt;&lt;P&gt;SORT i_mvke BY matnr.&lt;/P&gt;&lt;P&gt;SELECT kunnr werks matnr FROM msku INTO corresponding fields of TABLE i_msku&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN i_mvke                              &lt;/P&gt;&lt;P&gt;     WHERE matnr = i_mvke-matnr&lt;/P&gt;&lt;P&gt;       AND kunnr IN r_kunnr&lt;/P&gt;&lt;P&gt;       AND werks IN s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the performance is not improved,try using index.&lt;/P&gt;&lt;P&gt;otherwise select all the rows from msku at a strech and then delete the unwanted rows thereafer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Oct 2006 04:23:04 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2006-10-07T04:23:04Z</dc:date>
    <item>
      <title>Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555125#M251494</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 have a performance issue.&lt;/P&gt;&lt;P&gt;This below is my select statement. And it takes a long time to retrieve the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    
SORT i_mvke BY matnr.
SELECT kunnr werks matnr FROM msku INTO TABLE i_msku
     FOR ALL ENTRIES IN i_mvke                              
     WHERE matnr = i_mvke-matnr
       AND kunnr IN r_kunnr
       AND werks IN s_werks.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to improve this select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555125#M251494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T20:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555126#M251495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you don't need all 'Special stock indicator' make also a select about it. msku-SOBKZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555126#M251495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555127#M251496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that there are rows in I_MVKE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if not i_mvke[] is initial.
SORT i_mvke BY matnr.
SELECT kunnr werks matnr FROM msku INTO TABLE i_msku
     FOR ALL ENTRIES IN i_mvke                              
     WHERE matnr = i_mvke-matnr
       AND kunnr IN r_kunnr
       AND werks IN s_werks.
endif.&lt;/CODE&gt;&lt;/PRE&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, 06 Oct 2006 20:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555127#M251496</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-10-06T20:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555128#M251497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks NL &amp;amp; Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its still sluggish after including SOBKZ. And i did have a check for MVKE not being empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i make use of index? How do i know if this table has any?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555128#M251497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T20:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555129#M251498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE11 --&amp;gt; msku --&amp;gt; Index Button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my system, no index is defined for this table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to use index??? Just include them in your where parameters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2006 20:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555129#M251498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-06T20:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555130#M251499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;For the follwing query You can create the secondary index on the field 'Special Stock Indicator' in SE11 and then use the same in &amp;lt;Where &amp;gt; clause.&lt;/P&gt;&lt;P&gt;if not i_mvke is initial.&lt;/P&gt;&lt;P&gt;SORT i_mvke BY matnr.&lt;/P&gt;&lt;P&gt;SELECT kunnr werks matnr FROM msku INTO TABLE i_msku&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN i_mvke                              &lt;/P&gt;&lt;P&gt;     WHERE matnr = i_mvke-matnr&lt;/P&gt;&lt;P&gt;       AND kunnr IN r_kunnr&lt;/P&gt;&lt;P&gt;       AND werks IN s_werks.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Oct 2006 04:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555130#M251499</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2006-10-07T04:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Performance  for this select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555131#M251500</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;Check whether your internal table i_msku contains only the fields kunnr werks and matnr.Otherwise use as following.&lt;/P&gt;&lt;P&gt;SORT i_mvke BY matnr.&lt;/P&gt;&lt;P&gt;SELECT kunnr werks matnr FROM msku INTO corresponding fields of TABLE i_msku&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN i_mvke                              &lt;/P&gt;&lt;P&gt;     WHERE matnr = i_mvke-matnr&lt;/P&gt;&lt;P&gt;       AND kunnr IN r_kunnr&lt;/P&gt;&lt;P&gt;       AND werks IN s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the performance is not improved,try using index.&lt;/P&gt;&lt;P&gt;otherwise select all the rows from msku at a strech and then delete the unwanted rows thereafer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Oct 2006 04:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-performance-for-this-select/m-p/1555131#M251500</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-07T04:23:04Z</dc:date>
    </item>
  </channel>
</rss>

