2007 Jul 17 8:08 PM
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.
2007 Jul 17 8:16 PM
I think you can use the HINT.
Check this page.
http://www.intelligententerprise.com/channels/applications/columns/archive/abap4.jhtml
Regards,
Rich Heilman
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
2007 Jul 17 8:16 PM
I think you can use the HINT.
Check this page.
http://www.intelligententerprise.com/channels/applications/columns/archive/abap4.jhtml
Regards,
Rich Heilman
2007 Jul 17 10:59 PM
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)'
2007 Jul 18 5:06 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |