Hello Bartlomiej,
Step 1 is fine, it should work well.
2. Create a structure and a table from ty_output_pos and Insert the data to your table.
DATA: ls_item TYPE ty_output_pos,
lt_item TYPE TABLE OF ty_output_pos.
ls_item-mag = vl_field_1.
ls_item-aso = vl_field_2.
ls_item-kat = vl_field_3.
ls_item-source = vl_field_4.
ls_item-name = vl_field_5.
INSERT ls_item INTO TABLE lt_item.
3. that's correct.
Regards,
Genaro.