Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are indexes?

Answer Posted / shreeshaildiggi

Indexes - What are they and how can I use them?


An index helps to speed up selection from the database. An
index is a sorted copy of selected database table fields.

The primary index is always automatically created in an
ABAP-based SAP system. It consists of the primary key
fields of the database table. This means, for each
combination of the index fields exists a maximum of one
record in the table. This kind of index is called a UNIQUE
index.

If the primary index cannot be used to determine selection
result, (for example, the WHERE condition does not contain
any primary index fields), the system searches the whole
table. To prevent this, and determine the selection result
by searching through a restricted number of database
records, you can create a secondary index.

However, you should not define an index for all possible
fields in the WHERE condition.

Creating a secondary index :


You can use the transaction ABAP Dictionary Change &#8594;
Indexes... &#8594; Create to create an index. To make the index
unique, select UNIQUE. To specify the fields that will
comprise the index, choose "Choose fields". Then save and
activate the index.


Optimal number of indexes for a table :


You should not create more than five indexes for any one
table because:

Whenever you change table fields that occur in the index,
the index itself is also updated.
The amount of data increases.
The optimizer has too many chances to make mistakes by
using the 'wrong' index.


If you are using more than one index for a database table,
ensure that they do not overlap.

Thank's and Regards
Shreeshail Diggi
SAP Technical Consultant Infinite India

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are lock objects?

1077


What are different ABAP editors? What are the differences?

1162


It is not possible to create an abap/4 program, which contains only subroutines. State true or false. : abap modularization

1434


THANKS ALL. i CLEARED THE INTERVIEW OF INFOSYS BASED ON THIS QUESTION SET. IT REALLY WORKS. LONG LIVE ALLINTERVIEW.COM

16484


What is append structure?

1118


Is there any BAPI to retrieve list of customers and their sales areas i.e., Cust No, Distr Channel and Division for all the customers.

2118


if while coding power goes off , how to retrieve the codes?

2132


What are user exits? What is involved in writing them? What precations are needed?

1111


What is the difference between bdc_open_group and bdc_open_dataset. : abap bdc

1250


Give examples of transparent table?

1221


How do you move on to the next screen in interactive reporting?

1227


What kind of financial periods exist in SAP? What is the relevant table for that?

1169


Write an abap program for creation of customer enquiry using BAPI 'BAPI_INQUIRY_CREATEFROMDATA'.

2236


How do you get the number of lines in an internal table?

1118


when u prefer lsmw?

1113