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

table index

former_member192432
Participant
0 Likes
932

hi all,

how to create table index in program.

regards...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
894

Hi Dear,

You cannot create table index in program. Table index is created for database tables in using tcode se11.

Follow the below link to know more about it.

http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:56 PM

7 REPLIES 7
Read only

Former Member
0 Likes
895

Hi Dear,

You cannot create table index in program. Table index is created for database tables in using tcode se11.

Follow the below link to know more about it.

http://help.sap.com/saphelp_nw70/helpdata/en/cf/21eb20446011d189700000e8322d00/content.htm

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:56 PM

Read only

Former Member
0 Likes
894

HI,

Indexes are created in the table level only.

we cannot create indexes in programs.

<REMOVED BY MODERATOR>

Jagadish.

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:57 PM

Read only

prasanth_kasturi
Active Contributor
0 Likes
894

hi

you cannot create indexes in the programs.

its created in se11

we can create through

after you enter the table name and click change

goto----> indexes

regards

prasanth

Read only

Former Member
0 Likes
894

Hi,

Check this out.

http://sap.ittoolbox.com/groups/technical-functional/sap-basis/how-to-create-index-in-abap-dictionar...

and for creating secondary index, Check out

http://www.saptechnical.com/Tutorials/ABAP/SecondaryIndex/Create.htm

<REMOVED BY MODERATOR>

Regards,

Ramya

Edited by: Alvaro Tejada Galindo on Apr 8, 2008 5:57 PM

Read only

Former Member
0 Likes
894

Since you didn't state it.. I'll assume you are talking about an internal table.

This link give some very good information about internal tables and keys.

http://help.sap.com/saphelp_46c/helpdata/EN/fc/eb35de358411d1829f0000e829fbfe/frameset.htm

Take note of the discussion of the UNIQUE and NON-UNIQUE verbs.

Read only

Former Member
0 Likes
894

hi check this...

report ztest.

tables:mara .

data: begin of itab occurs 0,

matnr like mara-matnr,

end of itab.

select-options:s_matnr for mara-matnr .

select matnr from mara into table itab where matnr in s_matnr.

loop at itab.

write:/ sy-tabix, itab-matnr.

endloop.

here sy-tabix shows the table index .

regards,

venkat.

Read only

former_member192432
Participant
0 Likes
894

thanks for reply