Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Doubt in Tables

Former Member
0 Likes
494

Hi frnds,

Plz tell how to make INDEX in se11 tcode.

wht is Secondary index how to create?

Thanks,

Gowri

Hi frnds,

Plz tell how to make INDEX in se11 tcode.

wht is Secondary index how to create?

Thanks,

Gowri

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
474

Go to SE11, enter the table name, and click change, from the menu, choose Go To -> Indexes, click the create icon, enter the fields that you want as the secondary index, save and activate.

The primary index is the key of the table, which is defined when the table is defined, secondary indexes are the indexes that are defined like above. These provide faster access when there are SELECT statements whose WHERE clause use the fields in the secondary index.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
474

hi,

<b>The primary index is created automatically when the table is created in the database</b>.

You can search a table for data records that satisfy certain search criteria faster using an index.

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.

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 a table is created in database and moreover you can further define reference to the primary index which are known as Secondary index.

<b>follow these steps for creating secondary index.</b>

1) In the maintenance screen of the table, choose Indexes.

If indexes already exist on the table, a list of these indexes is displayed. Choose CREATE.

2) In the next dialog box, enter the index ID and press ENTER.

The maintenance screen for indexes appears.

3) Enter an explanatory text in the field Short text.

You can then use the short text to find the index at a later time, for example with the R/3 Repository Information System.

4) Select the table fields to be included in the index using the input help for the Field name column.

The order of the fields in the index is very important. See What to Keep in Mind for Secondary Indexes.

5) If the values in the index fields already uniquely identify each record of the table, select Unique index.

A unique index is always created in the database at activation because it also has a functional meaning (prevents double entries of the index fields).

6) If it is not a unique index, leave Non-unique index selected.

In this case you can use the radio buttons to define whether the index should be created for all database systems, for selected database systems or not at all in the database.

7) Select for selected database systems if the index should only be created for selected database systems.

Click on the arrow behind the radio buttons. A dialog box appears in which you can define up to 4 database systems with the input help. Select Selection list if the index should only be created on the given database systems. Select Exclusion list if the index should not be created on the given database systems. Choose .

😎 Choose ACTIVE.

regards,

Ashok Reddy