You are on page 1of 1

Loop at itab1 assigning <fs_itab1>.

read table itab2 into ls_itab2 with key anlage = <fs_itab1>-anlage.


if sy-subrc = 0.
l_tabix = sy-tabix.
loop at itab2 into ls_tab from l_tabix.
if ls_itab1-anlage<> ls_itab2-anlage.
exit.
endif.
l_count = l_count + 1.
endloop.
if l_count NE 2.
<fs_itab1>-pod = 'X'.

endif.
endif.
clear l_count.
endloop.

delete itab1 where pod EQ 'X'.

60427

You might also like