Skip to Content
0
Former Member
Jan 17, 2008 at 06:28 AM

How to delete entries from a itab using values in another itab?

204 Views

Hi All,

I am having two internal tables itab1, itab2 with one common field. Also two tables contains some records, what i want is to delete the entries from itab1 which are not in itab2.

Example:

itab1

A B C

1 a b

2 z a

3 e t

4 d r

itab2

A D E

1 s d

3 f g

After the deletion itab1 should only contain records 1 & 3.

I know we can do this using loop and read, but i want to know if there is someother better way to do this...

Thanks in advance...

Regards

Karthik D