Skip to Content
0
Former Member
Nov 01, 2005 at 03:49 PM

Deleting contents in itab1 based on entries in itab2 without loop

3485 Views

Hi,

i have a requirement in which i need to delete contents in ITAB 1 based on the contents in ITAB 2

For eg.

internal table 1 contains the following entries

-number -code---

-500000 - 1 ---

-500000 - 2 ---

-500000 - 3 ---

-500001 - 2 ---

-500002 -- 1 ---

-500003 -- 2 -


internal table 2 contains the following entries

-number

-500000

-500003

for all entries in internal table 2 i need to delete contents in internal table 1 with code 2 .so the result would be

final internal table 1.

-number code -

-500000 -- 1 ---

-500000 -- 3 ---

-500001 -- 2 ---

-500002 -- 1 ---

I Need to do this WITH OUT a loop. any help would be appreciated.

Thanks,

ravi.