04-28-2017 10:23 AM
Hi All,
I have following select statement
DATA lt_mara TYPE STANDARD TABLE OF mara-matnr.
SELECT matnr
FROM mara
INTO TABLE lt_mara
WHERE matkl = 'XYZ'
ORDER BY bismt laeda matnr.
this statement is working correctly in ABAP 7.5 environment but giving syntax error in 7.01 enviroment - field from ORDER BY clause is missing in the SELECT list . Is there any official information that this functionality was added and we can use it without risk? I like the functionality of not passing not needed fields from DB but still be able to sort by it.
Thanks for your answers
04-28-2017 12:07 PM
04-28-2017 12:07 PM
04-30-2017 7:50 AM
05-02-2017 11:52 PM
Change line to:
ORDER BY: bismt, laeda, matnr.
This worked on our 7.4 system.