<?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: Problem with INDEX in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938475#M387902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check that the index really exist in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SE11 when you go the the indexes choose it and make sure that the index exist in the DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Index VBRK~ZFA exists in database system ORACLE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The index being activated is not the same that exists in the DB. You can have an index activated that says that it doesn't exist in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So make sure it rlly exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Jun 2015 15:27:11 GMT</pubDate>
    <dc:creator>Rodrigo-Giner</dc:creator>
    <dc:date>2015-06-27T15:27:11Z</dc:date>
    <item>
      <title>Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938471#M387898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the following SELECT SENTENCE is executed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT bukrs vbeln kunag fkart waerk fkdat&lt;/P&gt;&lt;P&gt;      FROM vbrk CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;      INTO TABLE ti_factura&lt;/P&gt;&lt;P&gt;           WHERE mandt = '400' and fkart IN p_fkart&lt;/P&gt;&lt;P&gt;                 AND fkdat between p_budat1 and p_budat2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it alway performs a sequential search dispite we've created and activated an index with these fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MANDT&lt;/P&gt;&lt;P&gt;      FKART&lt;/P&gt;&lt;P&gt;      FKDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to get the SELECT use the index ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 16:26:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938471#M387898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938472#M387899</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;1) &lt;/P&gt;&lt;P&gt;Make sure you have value in P_FKART&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;To force index to a sql use the following..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example if you have created index name as Z01...Changes marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT bukrs vbeln kunag fkart waerk fkdat&lt;/P&gt;&lt;P&gt;FROM vbrk CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt;INTO TABLE ti_factura&lt;/P&gt;&lt;P&gt;WHERE mandt = '400' and fkart IN p_fkart&lt;/P&gt;&lt;P&gt;AND fkdat between p_budat1 and p_budat2&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;%_HINTS oracle 'INDEX("&amp;amp;TABLE&amp;amp;" "VBRK~Z01" "VBRK^Z01")'&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 16:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938472#M387899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T16:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938473#M387900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;You need to write the secondary indes like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM spfli&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;%_HINTS ORACLE 'INDEX("SPFLI" "SPFLI~001")'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SPFLI~001 is the index&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938473#M387900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938474#M387901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 04:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938474#M387901</guid>
      <dc:creator>dairolozano</dc:creator>
      <dc:date>2015-06-27T04:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938475#M387902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls check that the index really exist in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SE11 when you go the the indexes choose it and make sure that the index exist in the DB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Index VBRK~ZFA exists in database system ORACLE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The index being activated is not the same that exists in the DB. You can have an index activated that says that it doesn't exist in the DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So make sure it rlly exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 15:27:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938475#M387902</guid>
      <dc:creator>Rodrigo-Giner</dc:creator>
      <dc:date>2015-06-27T15:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938476#M387903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If you want to hit your index on SELECT statement exactly, specify index name like &lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;%_HINTS ORACLE 'INDEX("KNA1" "KNA1~001")'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;KUNNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FROM KNA1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;lt_kunnr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-size: 12px; color: #333333; background: #ffffff;"&gt;%_HINTS ORACLE 'INDEX("KNA1" "KNA1~001")'.&lt;/STRONG&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Even your index is not hit on your select exactly,ask your basis consultants run DBSTAT on table. It adjust index and table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Sateesh K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 17:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938476#M387903</guid>
      <dc:creator>sateeshkankanampati</dc:creator>
      <dc:date>2015-06-27T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938477#M387904</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 style="font-size: 12px; color: #333333; background: #ffffff;"&gt;You can use an index with the statement&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS oracle 'INDEX("&amp;lt;index name&amp;gt;")'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;SELECT DISTINCT bukrs vbeln kunag fkart waerk fkdat&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM vbrk CLIENT SPECIFIED&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE ti_factura&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE mandt = '400' and fkart IN p_fkart&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND fkdat between p_budat1 and p_budat2&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_HINTS oracle 'INDEX("Z01")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;look to this document, may help you. &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Performance Improvement using Indexes and ABAP Hints &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;A href="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50509a26-8186-2d10-bca9-dc1284e24b78?overridelayout=true" title="http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50509a26-8186-2d10-bca9-dc1284e24b78?overridelayout=true"&gt;http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50509a26-8186-2d10-bca9-dc1284e24b78?overridelayout=t…&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Regards&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 00:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938477#M387904</guid>
      <dc:creator>former_member184158</dc:creator>
      <dc:date>2015-06-28T00:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with INDEX</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938478#M387905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Jun 2015 09:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-index/m-p/1938478#M387905</guid>
      <dc:creator>kabil_g</dc:creator>
      <dc:date>2015-06-28T09:38:00Z</dc:date>
    </item>
  </channel>
</rss>

