Hallo Leute,
habe heute etwas durch Zufall entdeckt. Vielleicht kennt ihr das ja schon. Mir war es neu.
Code: Alles auswählen.
REPORT.
data: itmara type standard table of mara.
data: itmarc type standard table of marc.
select * from mara into table itmara.
move-corresponding itmara to itmarc.
Nach dem move-corresponding enthält ITMARC genauso viele Zeilen wie ITMARA und alle namensgleichen Felder sind gefüllt.
Online Hilfe
Variant for Internal Tables
2. MOVE-CORRESPONDING [EXACT] itab1 TO itab2
[EXPANDING NESTED TABLES] [KEEPING TARGET LINES].