Skip to Content
1
Oct 08, 2019 at 03:19 PM

Loop at Group by with reference field symbol challenge

1128 Views

Is it possible to use "loop at group" by with a table field symbol that was dereferenced from a dynamic table reference?

FIELD-SYMBOLS <lt_data> TYPE STANDARD TABLE.
FIELD-SYMBOLS <ls_data> TYPE any.

ASSIGN ir_data->* TO <lt_data>.
CREATE DATA lo_data LIKE LINE OF <lt_data>.
ASSIGN lo_data->* TO <ls_data>.

LOOP AT <lt_data> INTO <ls_data> GROUP BY ( type = <ls_data>-kurst ).
(type = doesn't work because <ls_data> has no structure and does not have component kurst)