What are indexes?
Answers were Sorted based on User's Feedback
Answer / 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 →
Indexes... → 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 |
Answer / paramjeet
Indexes are described as a copy of a database table reduced
to specific fields. This data exists in sorted form. This
sorting form ease fast access to the field of the tables. In
order that other fields are also read, a pointer to the
associated record of the actual table are included in the
index. the indexes are activated along with the table and
are created automatically with it in the database.
Is This Answer Correct ? | 0 Yes | 1 No |
By using which FM we can upload data into Infotype
How to create a link between modified form and modified print program?
what is defference between repository and non repository Object?
Hi, If anyone is interested in SAP ABAP from basics to Expert. Email me your contact details to sap.abap9@gmail.com
What are the differences between transparent tables, pooled tables & cluster tables? : abap data dictionary
how to Implement a BADI in which it restricts the access when purchase order is created against contract using definition ME_PURCHDOC_POSTED. please tell me the answers if any one knows. thanks in advance. :ravikiran
Is ABAP a GUI language?
Among pooled and Cluster tables, in which table data used to store in Row Format?
What is Infotype and how it is different from tables
what is T.Code to write ABAP program?
9 Answers FutureSoft, SAP Labs,
How many sections main window cab be divided in Script?
what next in SAP-ABAP/4 is it going to be change?