Ads

Step by Step Tutorial on Creating Secondary Index in SAP ABAP

Step by Step Tutorial on Creating Secondary Index in SAP ABAP


Indexes are used in SAP ABAP to search the data fast.

There are two types of search indexes :

1 Primary Index
2 Secondary Index


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.


We use indexes to speed up searching a table for data records that satisfy certain search criteria.

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.


Steps to create secondary index



1) go to se11

we need to clear a table initially  we can find secondary index for an already existing table

Step by Step Tutorial on Creating Secondary Index in SAP ABAP

 to check the presence of secondary indexes we have to go through the following steps


Step by Step Tutorial on Creating Secondary Index in SAP ABAP




if this below screen appears it indicates no secondary index is present
Step by Step Tutorial on Creating Secondary Index in SAP ABAP

go through following steps to create secondary index

give the index name and continue

Step by Step Tutorial on Creating Secondary Index in SAP ABAP



now a session appears where we have to give a short description and give any field as secondary index
Step by Step Tutorial on Creating Secondary Index in SAP ABAP



save and then activate
Step by Step Tutorial on Creating Secondary Index in SAP ABAP

we finally created secondary index

we can create till 9 secondary indexes



Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced