Application Development 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: 

How to specify a particular index for DB2 database when using SQL in ABAP

Former Member
0 Kudos

Is this format for Oracle?

-


select *

into -


from vbrk CLIENT SPECIFIED

where erdat in erdat

and mandt EQ sy-MANDT

%_HINTS ORACLE 'INDEX("VBRK" "VBRK~ZER")'

.

-


For the index 'VBRK~ZER' was defined before,it only includes one field 'VBRK-ERDAT'.

How can i tell Sap to use this index while processing SQL in DB2?

Thanks advance.

2 REPLIES 2

former_member194613
Active Contributor
0 Kudos

There are different hints for the different database platforms.

For up-to-date information please read the SAP notes, search 'hint DB2'.

Siegfried

0 Kudos

Thanks for your info.

A interesting situation was found that the right index was used while removing 'mandt' field from where clause with 'client specified' option.