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

database hints in select statement

Former Member
0 Likes
623

Hi all,

i need to apply the databaser hints for my select statement where i am using for all entries clause .But the issue is that i am getting the dump when i am tring with the same .

If i use the hint without all entries clause ,it runs fine.

The query where i need to apply the hint is :

SELECT * FROM bsim "n443935

INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean "n443935

FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey

AND matnr IN matnr

AND bwtar IN bwtar

AND budat >= datum-low.

and the DB hint is:

Addition of database hints for DB6 as per OSS message 649621

  • %_HINTS

  • DB6 'USE_OPTLEVEL 7' " Insert CR-1000000473 Tr-D11K934315

  • DB6 '&SUBSTITUTE VALUES&'.

Let me know whats the issue for the dump in for all entries in clause.

1 REPLY 1
Read only

former_member182670
Contributor
0 Likes
403

Did you check if [https://service.sap.com/sap/support/notes/1520152|https://service.sap.com/sap/support/notes/1520152] applies?