<?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: Ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820240#M1128042</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;&lt;/P&gt;&lt;P&gt;Tell to user that select-options of matnr need to be mandatory, you cant do much more if this important select options is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2008 19:36:07 GMT</pubDate>
    <dc:creator>rodrigo_paisante3</dc:creator>
    <dc:date>2008-12-05T19:36:07Z</dc:date>
    <item>
      <title>Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820236#M1128038</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;There is a select statement which is causing performance issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;    matnr&lt;/P&gt;&lt;P&gt;    charg&lt;/P&gt;&lt;P&gt;    sobkz&lt;/P&gt;&lt;P&gt;    kunnr&lt;/P&gt;&lt;P&gt;    lfgja&lt;/P&gt;&lt;P&gt;    lfmon&lt;/P&gt;&lt;P&gt;    kulab&lt;/P&gt;&lt;P&gt;FROM msku&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  INTO TABLE t_msku&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN t_msku_key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WHERE&lt;/P&gt;&lt;P&gt;    matnr IN s_matnr&lt;/P&gt;&lt;P&gt;    AND werks IN r_werks&lt;/P&gt;&lt;P&gt;    AND sobkz IN r_sobkz&lt;/P&gt;&lt;P&gt;    AND kunnr = t_msku_key-kunnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this select statement matnr is not a mandatory field.Since this is a mandatory field in msku table and this is not passed in the where condition of the select statement it is taking lot of time for execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possidle to use range on matnr field instead of select-option field?&lt;/P&gt;&lt;P&gt;If so how do we populate that range?which function module do we use for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 05:33:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820236#M1128038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T05:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820237#M1128039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Is it possidle to use range on matnr field instead of select-option field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select-options &lt;EM&gt;is&lt;/EM&gt; a range. If you leave it empty, your query will run for a long time on a large table, no matter what.&lt;/P&gt;&lt;P&gt;Since you have an EQ-condition on KUNNR, you might want to investigate if there is another table allowing quick access by that field (I'm not aware of one), or if that query is so important and used in several programs, then maybe create a new secondary index on MSKU-KUNNR.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 08:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820237#M1128039</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-11-20T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820238#M1128040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can also fill MATNR when creating t_msku_key. I don't know how you get that table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 15:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820238#M1128040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T15:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820239#M1128041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try, Creating a secondary index on &lt;/P&gt;&lt;P&gt;werks&lt;/P&gt;&lt;P&gt;sobkz&lt;/P&gt;&lt;P&gt;kunnr&lt;/P&gt;&lt;P&gt;This might help in imporving the performance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 18:24:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820239#M1128041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-05T18:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820240#M1128042</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;&lt;/P&gt;&lt;P&gt;Tell to user that select-options of matnr need to be mandatory, you cant do much more if this important select options is empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2008 19:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/4820240#M1128042</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2008-12-05T19:36:07Z</dc:date>
    </item>
  </channel>
</rss>

