question about comparing 2 internal tables...
I have 2 internal tables, it_ekpo and it_mseg2. now, what I want to do is delete records from itab it_ekpo that doesn't exist in itab it_mseg2. Bewlo is the code that I made. Please let me know if it's wrong or if it can be done in a better way. Thank you guys and take care!
LOOP AT it_ekpo.
READ TABLE it_mseg2 WITH KEY ebeln = it_ekpo-ebeln.
IF sy-subrc <> 0.