<?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: primary index in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666801#M883134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is the difference between primary index and secondary index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primary index : Its the index which is automatically created for the PRIMARY KEY FIELD(S) of the table.&lt;/P&gt;&lt;P&gt;The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary index : Its created as and when required,&lt;/P&gt;&lt;P&gt;based upon other field(s) of the table,&lt;/P&gt;&lt;P&gt;on which search criteria is used in sqls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indexes should contain columns that you use frequently in a selection, and that are as highly selective as possible. The fewer table entries that can be selected by a certain column, the higher that column&amp;#146;s selectivity. Place the most selective fields at the beginning of the index. Your secondary index should be so selective that each index entry corresponds to at most five percent of the table entries. If this is not the case, it is not worth creating the index. You should also avoid creating indexes for fields that are not always filled, where their value is initial for most entries in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATION&lt;/P&gt;&lt;P&gt;go to SE11&lt;/P&gt;&lt;P&gt;enter table name&lt;/P&gt;&lt;P&gt;press display&lt;/P&gt;&lt;P&gt;from menu GOTO-&amp;gt; indexes&lt;/P&gt;&lt;P&gt;press create button&lt;/P&gt;&lt;P&gt;enter the fields for which you need the index&lt;/P&gt;&lt;P&gt;save and activate&lt;/P&gt;&lt;P&gt;use those fields in the Where condition of the select statement and see&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Phani,&lt;/P&gt;&lt;P&gt;Points If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2008 19:25:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-05T19:25:10Z</dc:date>
    <item>
      <title>primary index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666798#M883131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all gurus &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i raised one question on primary index . ansers are given but can u pls explain the meaning of of the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary index contains the key fields of the table and a pointer to the non-key fields of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does it mean pointer to the non key fields of the table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls points willbe rewarde d&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 05:24:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666798#M883131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T05:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: primary index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666799#M883132</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;Please create Secondary INDEX&lt;/P&gt;&lt;P&gt;[How to create Secondary Index|http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm]&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;Brown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 05:35:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666799#M883132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T05:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: primary index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666800#M883133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which means it is a pointer which uniquely identifies non key fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 05:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666800#M883133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T05:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: primary index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666801#M883134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is the difference between primary index and secondary index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primary index : Its the index which is automatically created for the PRIMARY KEY FIELD(S) of the table.&lt;/P&gt;&lt;P&gt;The primary index is always created automatically in the R/3 System. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary index : Its created as and when required,&lt;/P&gt;&lt;P&gt;based upon other field(s) of the table,&lt;/P&gt;&lt;P&gt;on which search criteria is used in sqls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary indexes should contain columns that you use frequently in a selection, and that are as highly selective as possible. The fewer table entries that can be selected by a certain column, the higher that column&amp;#146;s selectivity. Place the most selective fields at the beginning of the index. Your secondary index should be so selective that each index entry corresponds to at most five percent of the table entries. If this is not the case, it is not worth creating the index. You should also avoid creating indexes for fields that are not always filled, where their value is initial for most entries in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATION&lt;/P&gt;&lt;P&gt;go to SE11&lt;/P&gt;&lt;P&gt;enter table name&lt;/P&gt;&lt;P&gt;press display&lt;/P&gt;&lt;P&gt;from menu GOTO-&amp;gt; indexes&lt;/P&gt;&lt;P&gt;press create button&lt;/P&gt;&lt;P&gt;enter the fields for which you need the index&lt;/P&gt;&lt;P&gt;save and activate&lt;/P&gt;&lt;P&gt;use those fields in the Where condition of the select statement and see&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Phani,&lt;/P&gt;&lt;P&gt;Points If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 19:25:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666801#M883134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T19:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: primary index</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666802#M883135</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;This is SAP table index mechanism issue. One SAP table is for one database table, and every indexes are for every database table respectively which linked by the recorder pointer to the SAP main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is SAP official explanation: &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you feel useful, points please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 20:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/primary-index/m-p/3666802#M883135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T20:48:46Z</dc:date>
    </item>
  </channel>
</rss>

