How to Compare two itab and delete entries....
In itab1 table there are following entries.
In itab2 table there are following entries.
I want to compare both itab and delete all vbeln from itab1 which are not in itab2.
How to write ? Guide me.
This is my answer,I tested it,it works.
LOOP AT TAB_TABLE1 INTO WA_TABLE1.
READ TABLE TAB_TABLE2 WITH KEY VBELN = WA_TABLE1-VBELN INTO WA_TABLE2.
IF SY-SUBRC <> 0.
DELETE TABLE TAB_TABLE1 FROM WA_TABLE1.