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

DB02

Former Member
0 Likes
865

Team,

In DB02 transaction, on clicking tab ' Missing Indexes ', i need to diplay the primary index and secondary index count in abap report. So can you let me know if ant function module available or any standard reports to get this counts.

Thanks in advance.

Regards,

Gururaj.

5 REPLIES 5
Read only

Arun_Prabhu_K
Active Contributor
0 Likes
821

Hello Gururaj.

     For primary index: Table DD03L (Pass TABNAME = table name and KEYFLAG = 'X' to get the count)

     For secondary index: Table DD12V (Pass SQLTAB = table name to get the count)

Regards.

Read only

0 Likes
821

Hi,

Looked at these tables DD03L and DD12V.

But if i check DB02 transaction and click the tab "Missing indexes", the counts are different.

Attached the screen shot for reference. Here Primary index is 0 and Secondary index is 3.

i want to display only these 3 names in my report and if i cross check this this object name in DD12V for secondary index, the ibject does not exist in the table.

Please let me know how to get these counts.

regards,

Gururaj.

Read only

0 Likes
821

Actually I am not used to DB02 tcode functionality.

To get secondary index count of a table:

Just pass the table name to field SQLTAB of table DD12V.

I am getting the records correctly.

Read only

0 Likes
821

Hi,

I'm not getting the counts correctly.  On clicking, 'Missing indexs, the counts for primary and secondary is different. Also i dont want to pass any table name specifically for field SQLTAB.

Anyways thanks for support.

Regards,

Gururaj.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
821

You could try to use native SQL commands, select from dba_tables or dba_indexes (After an analyze statement) Either use native SQL or an ADBC class CL_SQL*. Then cross the result with SAP ddic table like DD02L or DD12L.

Regards,

Raymond