*&---------------------------------------------------------------------*
*& Report ZZ_##_MEHRDIMTABELLE *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT ZZ_##_MEHRDIMTABELLE.
TYPES tzeichenkette(255) TYPE c.
DATA element TYPE tzeichenkette.
*Variante 1
TYPES tspalten TYPE STANDARD TABLE OF tzeichenkette WITH DEFAULT KEY.
TYPES tzeilen TYPE STANDARD TABLE OF tspalten WITH DEFAULT KEY.
DATA spalten TYPE tspalten.
DATA zeilen TYPE tzeilen.
*Variante 2
*DATA spalten TYPE STANDARD TABLE OF tzeichenkette.
*TYPES tspalten LIKE spalten.
*DATA zeilen TYPE STANDARD TABLE OF tspalten.
*TYPES tzeilen LIKE zeilen.
REFRESH spalten.
APPEND 'eins' TO spalten.
APPEND 'zwei' TO spalten.
APPEND 'drei' TO spalten.
APPEND 'vier' TO spalten.
APPEND spalten TO zeilen.
REFRESH spalten.
APPEND 'fünf' TO spalten.
APPEND 'sechs' TO spalten.
APPEND 'sieben' TO spalten.
APPEND 'acht' TO spalten.
APPEND spalten TO zeilen.
REFRESH spalten.
APPEND 'neun' TO spalten.
APPEND 'zehn' TO spalten.
APPEND 'elf' TO spalten.
APPEND 'zwölf' TO spalten.
APPEND spalten TO zeilen.
LOOP AT zeilen INTO spalten.
LOOP AT spalten INTO element.
WRITE / element.
ENDLOOP.
ENDLOOP.