Escolar Documentos
Profissional Documentos
Cultura Documentos
key(5) TYPE c,
num1(2) TYPE n,
num2 TYPE i,
END OF d_collect.
DATA itab LIKE STANDARD TABLE OF d_collect.
d_collect-key = 'First'.
d_collect-num1 = '20'.
d_collect-num2 = '30'.
COLLECT d_collect into itab.
d_collect-key = 'First'.
d_collect-num1 = '20'.
d_collect-num2 = '15'.
COLLECT d_collect into itab.
d_collect-key = 'Second'.
d_collect-num1 = '20'.
d_collect-num2 = '15'.
COLLECT d_collect into itab.
Please make a not that the first and the third COLLECT statements
act as insertion statements and they just append the row to the table.