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

Index

Former Member
0 Likes
531

Is there any way you can specify the index that the select statement needs to use programatically or while writing your select statement.

Thanks,

ALAM.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
509

I think you can use the HINT.

Check this page.

http://www.intelligententerprise.com/channels/applications/columns/archive/abap4.jhtml

Regards,

Rich Heilman

I think you can use the HINT.

Check this page.

http://www.intelligententerprise.com/channels/applications/columns/archive/abap4.jhtml

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
510

I think you can use the HINT.

Check this page.

http://www.intelligententerprise.com/channels/applications/columns/archive/abap4.jhtml

Regards,

Rich Heilman

Read only

Former Member
0 Likes
509

See the sample statement using hints.


SELECT * FROM knvh INTO CORRESPONDING FIELDS OF TABLE lvt_xknvh_sons
                            WHERE hityp = pis_xknvh-hityp AND
                                 hkunnr = pis_xknvh-kunnr AND
                                 hvkorg = pis_xknvh-vkorg AND
                                 hvtweg = pis_xknvh-vtweg AND
                                 hspart = pis_xknvh-spart AND
                                 datab <= s_date AND
                                 datbi >= s_date
             %_HINTS ORACLE 'index(knvh knvh______a)'

Read only

former_member196299
Active Contributor
0 Likes
509

hi Alam ,

Yes very well you can do so by providing a where clause and keeping all the possible criterias to make the index clear . So that what happens is , the system creates an index from the where clause itself and selects the values based on it .

Thats the way you can use the indexes programatically .

Regards,

Ranjita