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

Problem with table index

Former Member
0 Likes
681

Hi!

We created an index for Z table but the ABAP program trace (using transaction ST05) for this table shows us that there is no access by this index. However, the same query in Oracle accesses the table by the index we created.

Any ideas of what happen here?

Thanks!!!!

Cristian

Hi!

We created an index for Z table but the ABAP program trace (using transaction ST05) for this table shows us that there is no access by this index. However, the same query in Oracle accesses the table by the index we created.

Any ideas of what happen here?

Thanks!!!!

Cristian

3 REPLIES 3
Read only

Former Member
0 Likes
652

Hi ,

The index to be used is determined by the system during the program execution , in case you want the system to use a perticular index , then you will have to use Oracel Hints in the select statement , where you specify the index you want the system to use during data selection.

Please see the post which gives an example , Or[Oracle Hints [Specify Index ]|;

Regards

Arun

Read only

Former Member
0 Likes
652

So it must be in two completely different systems - right?

Make sure the statistics are up to date in the system where it is not using the index.

Rob

Read only

Former Member
0 Likes
652

Can you post the queries and their execution plans?