Code: Alles auswählen.
DATA: lt_itab type table of t001.
Code: Alles auswählen.
Select * from (tabname) into table lt_itab.
Code: Alles auswählen.
PARAMETERS: TABNAME LIKE DD02L-TABNAME.
DATA: ls_itab type ref to data.
CREATE DATA ls_itab type (TABNAME).
FIELD-SYMBOLS: <f> type any,
<fc> type any.
ASSIGN ls_itab->* TO <f>.
SELECT * FROM (TABNAME) into <f>.
WHILE sy-subrc = 0.
ASSIGN COMPONENT sy-index OF STRUCTURE <f> TO <fc>.
WRITE / <f>.
ENDWHILE.
ENDSELECT.
Code: Alles auswählen.
DATA: ls_itab type ref to data.
CREATE DATA ls_itab type table of (TABNAME).
FIELD-SYMBOLS: <f> type STANDARD TABLE.
ASSIGN ls_itab->* TO <f>.
SELECT * FROM (TABNAME) into table <f>.