07-13-2017 11:52 AM
As of 7.40 we can finally make use of inline data declarations.
Can you use an inline data declaration and specify the type at once?
For example when I do a select on a database type I want to use a hashed type as the output type. But when I use an inline data declaration it will always generate a STANDARD TABLE.
SELECT matnr, maktx
FROM makt
INTO @DATA(lt_makt) <-- This should be a hashed table with key MATNR
WHERE spras = sy-langu.
07-13-2017 12:51 PM
No, in SELECT this isn't possible.
It is possible in other write positions, where the type of the source is completely known.
07-13-2017 12:51 PM
No, in SELECT this isn't possible.
It is possible in other write positions, where the type of the source is completely known.
07-13-2017 1:03 PM
That was a fast answer. Thanks Horst.
Too bad this isn't possible (yet). Maybe a feature for in the future?