Hi,
Anyone can explain what are the below codes trying to do ?
Why nid to append GFL_ITEMS to GIT_ITEMS ?
Thanks
The coding
==============================================================
refresh GIT_ITEMS.
loop at GIT_ITEMS_MAIN INTO gfl_items_main.
if gfl_items_main-belnr = GFL_HEADER-belnr.
MOVE-CORRESPONDING gfl_items_main TO GFL_ITEMS..
append GFL_ITEMS to GIT_ITEMS.
endif.
CLEAR: gfl_items_main, GFL_ITEMS.
ENDLOOP.
where GIT_ITEMS IS A TABLE TYPE WHICH REFER TO z_ABC TABLE
GIT_ITEMS_MAIN IS A TABLE TYPE WHICH REFER TO z_ABC TABLE
GFL_HEADER IS BKPF
GFL_ITEMS IS z_ABC TABLE
GFL_ITEMS_MAIN IS z_ABC TABLE