<?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: ABAP Development in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874906#M931408</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 can use primary index in the where condition provided you have values to compare &lt;/P&gt;&lt;P&gt;say for eg: where ebeln in so_ebeln and pr_date = '12.05.2008'.&lt;/P&gt;&lt;P&gt;if can give where conditions on the key fields of the table then primary index comes into picture..&lt;/P&gt;&lt;P&gt;(primary index will help in faster data access).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if no prmary index is available say for field by name 'AGE' you can create ur own indes in SE11. bt u may have to consult your BASIS admin before doing so. &lt;/P&gt;&lt;P&gt;for large tables avoid creating indices.&lt;/P&gt;&lt;P&gt;AS FAR AS POSSIBLE USE PRIMARY INDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2008 05:48:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-21T05:48:42Z</dc:date>
    <item>
      <title>ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874900#M931402</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;&lt;/P&gt;&lt;P&gt;I'm bit bemused when to use Primary Index &amp;amp; Secondary Index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me about my this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Noor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 11:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874900#M931402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T11:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874901#M931403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Primary and secondary indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Index: Technical key of a database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Primary index: The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondary index: Additional indexes could be created considering the most frequently accessed dimensions of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure of an Index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can be used to speed up the selection of data records from a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can be considered to be a copy of a database table reduced to certain fields. The data is stored in sorted form in this copy. This sorting permits fast access to the records of the table (for example using a binary search). Not all of the fields of the table are contained in the index. The index also contains a pointer from the index entry to the corresponding table entry to permit all the field contents to be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating indexes, please note that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can only be used up to the last specified field in the selection! The fields which are specified in the WHERE clause for a large number of selections should be in the first position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only those fields whose values significantly restrict the amount of data are meaningful in an index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you change a data record of a table, you must adjust the index sorting. Tables whose contents are frequently changed therefore should not have too many indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the indexes on a table are as disjunctive as possible.&lt;/P&gt;&lt;P&gt;(That is they should contain as few fields in common as possible. If two indexes on a table have a large number of common fields, this could make it more difficult for the optimizer to choose the most selective index.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accessing tables using Indexes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database optimizer decides which index on the table should be used by the database to access data records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must distinguish between the primary index and secondary indexes of a table. The primary index contains the key fields of the table. The primary index is automatically created in the database when the table is activated. If a large table is frequently accessed such that it is not possible to apply primary index sorting, you should create secondary indexes for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The indexes on a table have a three-character index ID. '0' is reserved for the primary index. Customers can create their own indexes on SAP tables; their IDs must begin with Y or Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the index fields have key function, i.e. they already uniquely identify each record of the table, an index can be called a unique index. This ensures that there are no duplicate index fields in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a secondary index in the ABAP Dictionary, you can specify whether it should be created on the database when it is activated. Some indexes only result in a gain in performance for certain database systems. You can therefore specify a list of database systems when you define an index. The index is then only created on the specified database systems when activated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 12:02:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874901#M931403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T12:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874902#M931404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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. The primary index is created automatically when the table is created in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create further indexes on a table in the ABAP Dictionary. These are called secondary indexes. &lt;STRONG&gt;This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Indexes|http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 12:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874902#M931404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-19T12:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874903#M931405</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;You can search a table for data records that satisfy certain search criteria faster using an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can be considered a copy of a database table that has been reduced to certain fields. This copy is always in sorted form. Sorting provides faster access to the data records of the table, for example using a binary search. The index also contains a pointer to the corresponding record of the actual table so that the fields not contained in the index can also be read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The primary index is distinguished from the secondary indexes of a table. The primary index contains the key fields of the table and a pointer to the non-key fields of the table. The primary index is created automatically when the table is created in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table SCOUNTER in the  flight model contains the assignment of the carrier counters to airports. The primary index on this table therefore consists of the key fields of the table and a pointer to the original data records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create further indexes on a table in the ABAP Dictionary. These are called secondary indexes. This is necessary if the table is frequently accessed in a way that does not take advantage of the sorting of the primary index for the access. Different indexes on the same table are distinguished with a three-place index identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the counters of carriers at a certain airport are often searched for flight bookings. The airport ID is used to search for counters for such an access. Sorting the primary index is of no use in speeding up this access. Since table SCOUNTER has a large number of entries, a secondary index on the field AIRPORT (ID of the airport) must be created to support access using the airport ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 05:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874903#M931405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874904#M931406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helllo Shiva Kumar , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have specified that there are database sytems where to which we can assign secondary .index .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u please elaborate in this as we generally have one Database system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:36:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874904#M931406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874905#M931407</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;When creating indexes, please note that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can only be used up to the last specified field in the selection! The fields which are specified in the WHERE clause for a large number of selections should be in the first position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only those fields whose values significantly restrict the amount of data are meaningful in an index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you change a data record of a table, you must adjust the index sorting. Tables whose contents are frequently changed therefore should not have too many indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the indexes on a table are as disjunct as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The database optimizer decides which index on the table should be used by the database to access data records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must distinguish between the primary index and secondary indexes of a table. The primary index contains the key fields of the table. The primary index is automatically created in the database when the table is activated. If a large table is frequently accessed such that it is not possible to apply primary index sorting, you should create secondary indexes for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The indexes on a table have a three-character index ID. '0' is reserved for the primary index. Customers can create their own indexes on SAP tables; their IDs must begin with Y or Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the index fields have key function, i.e. they already uniquely identify each record of the table, an index can be called a unique index. This ensures that there are no duplicate index fields in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a secondary index in the ABAP Dictionary, you can specify whether it should be created on the database when it is activated. Some indexes only result in a gain in performance for certain database systems. You can therefore specify a list of database systems when you define an index. The index is then only created on the specified database systems when activated.&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;vineela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 09:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874905#M931407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T09:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874906#M931408</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 can use primary index in the where condition provided you have values to compare &lt;/P&gt;&lt;P&gt;say for eg: where ebeln in so_ebeln and pr_date = '12.05.2008'.&lt;/P&gt;&lt;P&gt;if can give where conditions on the key fields of the table then primary index comes into picture..&lt;/P&gt;&lt;P&gt;(primary index will help in faster data access).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if no prmary index is available say for field by name 'AGE' you can create ur own indes in SE11. bt u may have to consult your BASIS admin before doing so. &lt;/P&gt;&lt;P&gt;for large tables avoid creating indices.&lt;/P&gt;&lt;P&gt;AS FAR AS POSSIBLE USE PRIMARY INDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2008 05:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874906#M931408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-21T05:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874907#M931409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vibha for your valuable inputs, this helped me a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 19:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874907#M931409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Development</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874908#M931410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks shiva,&lt;/P&gt;&lt;P&gt;Your explanation was such great that my concept is clear.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;noor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 19:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-development/m-p/3874908#M931410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T19:44:39Z</dc:date>
    </item>
  </channel>
</rss>

