<?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/2823792#M660620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No performance issues, however to avaoid empty date fields assed to the select query, make them atory in the selection screen.&lt;/P&gt;&lt;P&gt;Otherwise if date is not given it will fetch large number of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2007 11:48:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T11:48:15Z</dc:date>
    <item>
      <title>ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823789#M660617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;am using ranges in below select..&lt;/P&gt;&lt;P&gt;is there any performance issue..can u suggest a beeter way other than ranges..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs belnr budat blart awkey&lt;/P&gt;&lt;P&gt;  INTO TABLE ibkpf&lt;/P&gt;&lt;P&gt;  FROM bkpf&lt;/P&gt;&lt;P&gt;                      WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;                      AND   gjahr = gjahr&lt;/P&gt;&lt;P&gt;                      AND   monat IN s_monat&lt;/P&gt;&lt;P&gt;                      AND   blart IN r_blart&lt;/P&gt;&lt;P&gt;                      AND   budat IN s_date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:21:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823789#M660617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823790#M660618</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;no there is no performance issue at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are doing it rightly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only remember place the fields in select query as they are in database table i.i first primary keys and then other if they are on selection screen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 09:24:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823790#M660618</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T09:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823791#M660619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tuborg,&lt;/P&gt;&lt;P&gt;   Nice, But it is always better to warn / Inform the user when  Empty date ranges are used Particularly with  Date  on Tables like  BKPF, MKPF, CDHDR, .... tables. Better to  Schedule the  Program in Backgroud.&lt;/P&gt;&lt;P&gt;Volume  of  Data will be very large..&lt;/P&gt;&lt;P&gt;your program need not  fail because of time out error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sureshkumar.AL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:43:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823791#M660619</guid>
      <dc:creator>former_member485052</dc:creator>
      <dc:date>2007-10-04T11:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823792#M660620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No performance issues, however to avaoid empty date fields assed to the select query, make them atory in the selection screen.&lt;/P&gt;&lt;P&gt;Otherwise if date is not given it will fetch large number of data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 11:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823792#M660620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T11:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823793#M660621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there is. Your SELECT will try to use either index 2 or 3 depending on your database statistics, but won't be able to do it effectively because you are not using BSTAT in the WHERE clause. It may seem counter-intuitive, but simply adding all values of that field to the WHERE may speed it up considerably:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs belnr budat blart awkey
  INTO TABLE ibkpf
  FROM bkpf
  WHERE bukrs = p_bukrs
    AND gjahr = gjahr
    AND bstat IN (' ', 'A', 'B', 'D', 'M', 'S', 'V', 'W', 'Z')    "&amp;lt;=======
    AND monat IN s_monat
    AND blart IN r_blart
    AND budat IN s_date.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the others have suggested, make sure that either r_blart or s_date is not empty and does not contain any 'NE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 13:20:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/2823793#M660621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T13:20:41Z</dc:date>
    </item>
  </channel>
</rss>

