<?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: Table Index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335299#M1229219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not really recommended to create index, if you have not much experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are advantages and disadvantages of new indexes, you have to take care.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without statistics it will not be chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2009 10:46:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-06T10:46:42Z</dc:date>
    <item>
      <title>Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335292#M1229212</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;I need to understand something. I'm trying to improve performance on a report. The most selections do not use table keys to acess, so, somebody create some indexes with the idea to make the selection faster. Here is one example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT *&lt;/P&gt;&lt;P&gt;      FROM coep&lt;/P&gt;&lt;P&gt;      INTO TABLE t_coep&lt;/P&gt;&lt;P&gt;     WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;       AND gjahr = p_gjahr&lt;/P&gt;&lt;P&gt;       AND perio IN r_perio&lt;/P&gt;&lt;P&gt;       AND kstar IN s_kstar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table COEP has a index with fields bukrs, gjahr, perio e kstar. But, after use ST22 I discover that the database is not using this index. Its use the "normal one". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that is not a good programming pratice use select * (I will take out and put only the fields that I want).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, somebody com explain to me how the indexes works or have some document about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any kind of help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 20:27:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335292#M1229212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335293#M1229213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the SAP documentation: &lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/EN/77/415d363640933fe10000009b38f839/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/EN/77/415d363640933fe10000009b38f839/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 20:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335293#M1229213</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-05T20:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335294#M1229214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to correct forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to realize that the index is chosen at run time and may not correspond to the fields you have in the SELECT.&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, 05 Mar 2009 20:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335294#M1229214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T20:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335295#M1229215</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;It must verify that the index exists in the Data Base. Execute the SE11 transaction with the COEP table and presses de INDEXES button, double click in the index and check status "Index xxxx exists in database system xxxxxx"  or "Index does not exist in database system xxxxxx".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this information is help to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;José&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 21:22:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335295#M1229215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T21:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335296#M1229216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the below,&lt;/P&gt;&lt;P&gt;u can tell the select query 'which index to use'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use your INDEX number in place of '3' here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM coep&lt;/P&gt;&lt;P&gt;INTO TABLE t_coep&lt;/P&gt;&lt;P&gt;WHERE bukrs IN s_bukrs&lt;/P&gt;&lt;P&gt;AND gjahr = p_gjahr&lt;/P&gt;&lt;P&gt;AND perio IN r_perio&lt;/P&gt;&lt;P&gt;AND kstar IN s_kstar&lt;/P&gt;&lt;P&gt;%_HINTS ORACLE 'INDEX("COEP" "COEP~3").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 01:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335296#M1229216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T01:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335297#M1229217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Forgot to add  ' at the end..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%_HINTS ORACLE 'INDEX("COEP" "COEP~3")'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 02:09:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335297#M1229217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T02:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335298#M1229218</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;check below link for performance &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap%2bperformance%2band%2btuning" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap%2bperformance%2band%2btuning&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/performance%2btuning" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/performance%2btuning&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 09:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335298#M1229218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T09:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335299#M1229219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not really recommended to create index, if you have not much experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are advantages and disadvantages of new indexes, you have to take care.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without statistics it will not be chosen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2009 10:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335299#M1229219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-06T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335300#M1229220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this [link&amp;gt;&amp;gt;&amp;gt;|http://help.sap.com/saphelp_erp2005/helpdata/EN/cf/21eb20446011d189700000e8322d00/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;~Satya&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Mar 2009 07:47:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335300#M1229220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-08T07:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table Index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335301#M1229221</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;I would use hints  ONLY in 2 cases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for testing purposes (force the usage of an index to see the response time changes )&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;a known bug inside the database handling the optimization of index access to the table (i.e. as described in some SAP standard table notes)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in all other cases: never use index hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will write the access plan kind-of "hard-coded" to the database.&lt;/P&gt;&lt;P&gt;If you have data volume changes inside the table the optimizer has no chance to develop an appropriate &lt;/P&gt;&lt;P&gt;plan. It is fixed to your all-purpose index - what definitley is not true (data volumes change,&lt;/P&gt;&lt;P&gt;filter condition change in a real system).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2009 12:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-index/m-p/5335301#M1229221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-09T12:23:32Z</dc:date>
    </item>
  </channel>
</rss>

