Wednesday, October 28, 2009

Creating Secondary Indexes


1. In the maintenance screen of the table, choose Indexes. 1. In the maintenance screen of the table, choose Indexes.If indexes already exist on the table, a list of these indexes is displayed,else choose to create.

2. In the next dialog box, enter the index ID and choose the green tick mark.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.

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 green tick mark.

8. Choose to activate.

Conclusion
The secondary index is automatically created in the database during activation if the corresponding table was already 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.

No comments:

Post a Comment