Skip to Content

Inline declaration specifying type

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.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 13, 2017 at 11:51 AM

    No, in SELECT this isn't possible.

    It is possible in other write positions, where the type of the source is completely known.

    Add comment
    10|10000 characters needed characters exceeded