Do you know how to create secondary index?

Answer Posted / guest

-> goto to se11 & enter table name & display(f7),

->then press indexes.. button on the application toolbar,

->if secondary indexes already exist, a list of them will
be displayed in a dialog box named indexes for table
xxxxx.to create an index,press the create(f5) button.the
create index dialog box will be displayed.

->if no secondary indexes exist,you will not see a list of
indexes.Instead, you will see the create index dialog box
immediately.

->enter an index id in the index id field.customer indexes
should begin with y or z,although the system does not
enforce this.

->press the continue button.the abap/4 dictionary:table
maintain index screen is displayed.

->in the short text field,type a description of the index.

->in the fld name column,type the fields that should
comprise the index in the order that they should be sorted.

->if the values in these fields when taken together must
always be unique be unique,tickmark the unique index check
box.

->press the save button on the application toolbar.the
values in the status fields are now NEW & SAVED & directly
below them the message Does not exist in the database
appears.Also, the message Index xxx to table xxxxx was
SAVED appears at the bottom of the window in the status bar.

->press the Activate button on the Application toolbar.The
system generates SQL & sends it to the RDBMS,creating the
index in the database.If successful,the status fields read
ACTIVE & SAVED, & below the satus fields the message EXISTS
IN THE DATABASE appears.The DB Index Name field will
contain the name of the index in the database.Also, in the
status bar, the message INDEX xxxxx was successfully
activated , is displayed.

->press Back. The Indexes for Table xxxxx screen is
displayed.

->press Cancel to return to the Dictionary:
Table/Structure: Display Fields screen.


CAUTION: if you tickmark the Unique Index checkbox, the
combination of fields in the index is guaranteed to be
uniwue; this is enforced by the RDBMS. An insert or modify
statement will fail if the combination of values in index
fields is already present in the table.

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary

760


What are multiple use BADIS?

1216


What will be your approach towards optimizing legacy code? Will you suggest change in technology? Does OO ABAP bring any performance benefits? How will you deal with queries in a loop? How will you optimize nested loops?

1093


What is meant by stacked list?

768


if u take one worst program,in this program user write the logic is session method.in that program user can get some errors ,that errors we will see in call transaction method,how it is possible.?

1876






Explain the advantages of logical databases?

773


Differentiate between abap memory and sap memory?

828


Why lsmw does not support call transaction method? : abap bdc

817


What is the use of 'table index'?

830


What are system fields for secondary lists?

796


What are the system fields?

714


Use SET PF_STATUS which is in the FM reuse_alv_grid_display to set the button

2005


what are the important fields while preparing sales order,inquiry?

2085


What are two methods of modifying sap standard tables?

761


How can I get ascii value of any letter? Is there any function?

867