2016 Dec 22 8:29 AM
/*+ leading(b) use_nl(a) */
I use this statement in select, but error will happen.
: Unknown column name "/*+" field list. field list. field list. field
So, how to fix them and how to use them?
Thanks.
2016 Dec 22 8:40 AM
That's not the correct Abap syntax, look in online Abap documentation for %HINTS or read 129385 - Database hints in Open SQL.
Regards,
Raymond
2016 Dec 22 9:03 AM
Hi Raymond,
Thank you, could you help to show me how to write the correct statement?
Because I have no authority to search for the sap note.
2016 Dec 22 10:34 AM
Code should be some
SELECT [..] FROM [..] WHERE [..] GROUP BY [..] HAVING [..] ORDER BY [..] %_HINTS selector 'text' selector 'text' [..]
Where selector are related to actual database (ORACLE, DB2, etc.) and 'text' is the hint (can be a char variable or a text constant)
But there are also notes for most databases managed by SAP, so ask you basis to download the note for your database in a pdf format.
Regards,
Raymond
2017 Mar 29 7:13 AM