Code: Alles auswählen.
TYPES
: y_trkorr LIKE e070-trkorr
, yt_trkorr TYPE TABLE OF y_trkorr
, BEGIN OF yt_transhist
, table LIKE e070-objname
, trkorrs TYPE yt_trkorr
, END OF yt_transhist
.
Code: Alles auswählen.
TYPES
: y_trkorr TYPE e070-trkorr
, yt_trkorr TYPE TABLE OF y_trkorr .
DATA
: BEGIN OF gs_transhist
, table TYPE e071k-objname "E071K !!
, trkorrs TYPE yt_trkorr
, END OF gs_transhist
.
TYPES
: yt_transhist LIKE TABLE OF gs_transhist.
Code: Alles auswählen.
TYPES: yt_trkorr TYPE TABLE OF e070-trkorr with default key.
types: BEGIN OF yt_transhist,
table LIKE e071k-objname,
trkorrs TYPE yt_trkorr,
END OF yt_transhist.
data gt_test type table of yt_transhist with header line.
data: lv_table type e071k-objname.
data: lt_trkorrs type yt_trkorr.
data wa_trkorrs like e071k-trkorr.
wa_trkorrs = 'SAPK700TD1'.
append wa_trkorrs to lt_trkorrs.
wa_trkorrs = 'SAPK700TD2'.
append wa_trkorrs to lt_trkorrs.
wa_trkorrs = 'SAPK700TD3'.
append wa_trkorrs to lt_trkorrs.
lv_table = 'TABLE1'.
gt_test-table = lv_table.
gt_test-trkorrs = lt_trkorrs.
append gt_test.