<?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 database hints in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-hints-in-select-statement/m-p/7611631#M1569390</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;i need to apply the databaser hints for my select statement where i am using for all entries clause .But the issue is that i am getting the dump when i am tring with the same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use the hint without all entries clause ,it runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query where  i need to apply the hint is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM bsim                                        "n443935&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean   "n443935&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey&lt;/P&gt;&lt;P&gt;                                        AND    matnr IN matnr&lt;/P&gt;&lt;P&gt;                                        AND    bwtar IN bwtar&lt;/P&gt;&lt;P&gt;                                        AND    budat &amp;gt;= datum-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the DB hint is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition of database hints for DB6 as per OSS message 649621&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  %_HINTS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DB6 'USE_OPTLEVEL 7'        " Insert CR-1000000473 Tr-D11K934315&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DB6 '&amp;amp;SUBSTITUTE VALUES&amp;amp;'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know whats the issue for the dump in for all entries in clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2011 20:34:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-31T20:34:31Z</dc:date>
    <item>
      <title>database hints in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-hints-in-select-statement/m-p/7611631#M1569390</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;i need to apply the databaser hints for my select statement where i am using for all entries clause .But the issue is that i am getting the dump when i am tring with the same .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use the hint without all entries clause ,it runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query where  i need to apply the hint is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM bsim                                        "n443935&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean   "n443935&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN t_bwkey   WHERE  bwkey = t_bwkey-bwkey&lt;/P&gt;&lt;P&gt;                                        AND    matnr IN matnr&lt;/P&gt;&lt;P&gt;                                        AND    bwtar IN bwtar&lt;/P&gt;&lt;P&gt;                                        AND    budat &amp;gt;= datum-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the DB hint is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition of database hints for DB6 as per OSS message 649621&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  %_HINTS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DB6 'USE_OPTLEVEL 7'        " Insert CR-1000000473 Tr-D11K934315&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DB6 '&amp;amp;SUBSTITUTE VALUES&amp;amp;'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know whats the issue for the dump in for all entries in clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 20:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-hints-in-select-statement/m-p/7611631#M1569390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T20:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: database hints in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-hints-in-select-statement/m-p/7611632#M1569391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check if [https://service.sap.com/sap/support/notes/1520152|https://service.sap.com/sap/support/notes/1520152] applies?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 22:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-hints-in-select-statement/m-p/7611632#M1569391</guid>
      <dc:creator>former_member182670</dc:creator>
      <dc:date>2011-01-31T22:45:18Z</dc:date>
    </item>
  </channel>
</rss>

