Mentor SAP

Database Access Using Indexes

The following points are important when indexes are created:

 

 

 

You can create an index to speed up the selection of data records from a table.

 

An index can be considered to be a copy of a database table reduced to certain fields. This copy stores the data in sorted form. Sorting the data enables fast access to the records of the table (for example, using a binary search). An index contains those fields of  the database table which are relevant for database queries. The index also contains a pointer from the index entry to the corresponding table entry so that all the field contents can be read.

 

Database Indexes

Each database table has one primary index and an arbitrary number of secondary indexes and extension indexes.

 

 

 

Table indexes have a three character ID. 0 is reserved for the primary index. Customers can create their own index on SAP tables. The IDs of customer indexes must begin with Y or Z.

 

 

Steps to create an index

The steps to create a secondary index and extension index are the same. Go to the ABAP Dictionary (SE11) and enter a table name. Choose the Indexes button, then the Create button, and select the index fields.