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

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

Former Member
0 Likes
684

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.

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
Read only

Former Member
0 Likes
589

There are different hints for the different database platforms.

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

Siegfried

Read only

0 Likes
589

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.