Start of Content Area

Procedure documentation Creating Secondary Indexes  Locate the document in its SAP Library structure

Procedure

...

       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 This graphic is explained in the accompanying text.

       2.      In the next dialog box, enter the index ID and choose This graphic is explained in the accompanying text

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 through the Information System.

       4.      Select the table fields to be inserted 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 This graphic is explained in the accompanying text.

       8.      Choose This graphic is explained in the accompanying text.

Result

The secondary index is automatically created on the database during activation if the corresponding table has already been created there and index creation was not excluded for the database system.

You can find information about the activation flow in the activation log, which you can call with Utilities Activation log. If errors occurred when activating the index, the activation log is automatically displayed.

See also:

Indexes

 

End of Content Area