Code: Alles auswählen.
DATA: it_res TYPE REF TO DATA,
v_string TYPE string.
* v_string = 'tabellenname'.
CREATE DATA it_res TYPE STANDARD TABLE OF (v_string).
SELECT * FROM (v_string) INTO TABLE it_res.
Code: Alles auswählen.
FIELD-SYMBOLS: <it_res> TYPE TABLE.
CREATE DATA it_res TYPE STANDARD TABLE OF (v_string).
SELECT * FROM (v_string) INTO TABLE <it_res>.
Fehlt vor dem SELECT nicht noch einereglam hat geschrieben:Code: Alles auswählen.
FIELD-SYMBOLS: <it_res> TYPE TABLE. CREATE DATA it_res TYPE STANDARD TABLE OF (v_string). SELECT * FROM (v_string) INTO TABLE <it_res>.
Code: Alles auswählen.
ASSIGN it_res->* to <it_res>.
Code: Alles auswählen.
FIELD-SYMBOLS: <it_res> TYPE TABLE.
CREATE DATA it_res TYPE STANDARD TABLE OF (v_string).
ASSIGN it_res->* TO <it_res>.
SELECT * FROM (v_string) INTO TABLE <it_res>.