<?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: Please corrrect me . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-corrrect-me/m-p/1661867#M293225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither. So ling as COMPCODE has values, this should be what you want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs belnr gjahr blart bldat budat xblnr hwaer
  FROM bkpf INTO TABLE tbkpf
  WHERE bukrs IN compcode
  AND bstat IN (' ', 'A', 'B', 'S', 'V', 'W', 'Z')
  AND budat IN postdate
  AND blart IN r_blart
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take out the HINTS. It's likely forcing the wrong index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 22:15:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T22:15:24Z</dc:date>
    <item>
      <title>Please corrrect me .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-corrrect-me/m-p/1661866#M293224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of using &lt;/P&gt;&lt;P&gt;  SELECT BUKRS BELNR GJAHR BLART BLDAT BUDAT XBLNR HWAER&lt;/P&gt;&lt;P&gt;         FROM  BKPF INTO TABLE TBKPF&lt;/P&gt;&lt;P&gt;         WHERE BUKRS IN COMPCODE&lt;/P&gt;&lt;P&gt;        AND    BSTAT NE 'M'&lt;/P&gt;&lt;P&gt;        AND    BSTAT NE 'D'&lt;/P&gt;&lt;P&gt;        AND    BUDAT IN POSTDATE   &lt;/P&gt;&lt;P&gt;        AND    BLART IN R_BLART                                    &lt;/P&gt;&lt;P&gt;               %_HINTS ORACLE 'INDEX (BKPF  BKPF______Z1)'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              order by primary key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better to use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT BUKRS BELNR GJAHR BLART BLDAT BUDAT XBLNR HWAER&lt;/P&gt;&lt;P&gt;         FROM  BKPF INTO TABLE TBKPF&lt;/P&gt;&lt;P&gt;         WHERE BUKRS IN COMPCODE&lt;/P&gt;&lt;P&gt;        AND    BUDAT IN POSTDATE   &lt;/P&gt;&lt;P&gt;        AND    BLART IN R_BLART                                    &lt;/P&gt;&lt;P&gt;               %_HINTS ORACLE 'INDEX (BKPF  BKPF______Z1)'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              order by primary key.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE TBKPF WHERE bstat &amp;lt;&amp;gt; 'M' AND bstat &amp;lt;&amp;gt; 'D'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 21:52:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-corrrect-me/m-p/1661866#M293224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T21:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Please corrrect me .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-corrrect-me/m-p/1661867#M293225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither. So ling as COMPCODE has values, this should be what you want:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT bukrs belnr gjahr blart bldat budat xblnr hwaer
  FROM bkpf INTO TABLE tbkpf
  WHERE bukrs IN compcode
  AND bstat IN (' ', 'A', 'B', 'S', 'V', 'W', 'Z')
  AND budat IN postdate
  AND blart IN r_blart
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take out the HINTS. It's likely forcing the wrong index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 22:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-corrrect-me/m-p/1661867#M293225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T22:15:24Z</dc:date>
    </item>
  </channel>
</rss>

