Code: Alles auswählen.
FIELD-SYMBOLS:
<lt_table> TYPE ANY TABLE
<ls_tab> LIKE LINE OF lt_tab,
<la_line> TYPE ANY.
LOOP AT lt_tab ASSIGNING <ls_tab>.
ASSIGN (<ls_tab>-tabn) TO <lt_table>.
LOOP AT <lt_table> ASSIGNING <la_line>.
* do whatever you want to do.
ENDLOOP.
ENDLOOP.
Code: Alles auswählen.
*&---------------------------------------------------------------------*
*& Report ZTEST6
*&---------------------------------------------------------------------*
REPORT ZTEST6.
DATA: LT_TAB TYPE STANDARD TABLE OF STRING,
TABELLE1 TYPE STANDARD TABLE OF MATNR.
FIELD-SYMBOLS <TABELLENKOERPER> TYPE ANY TABLE.
APPEND 'Tabelle1' TO LT_TAB.
LOOP AT LT_TAB ASSIGNING FIELD-SYMBOL(<LT_TAB>).
ASSIGN (<LT_TAB>) TO <TABELLENKOERPER>.
LOOP AT <TABELLENKOERPER> ASSIGNING FIELD-SYMBOL(<TABELLENZEILE>).
" do something
ENDLOOP.
ENDLOOP.
Folgende Benutzer bedankten sich beim Autor DeathAndPain für den Beitrag:
a-dead-trousers