Skip to Content
0
Former Member
May 13, 2008 at 09:34 AM

SEARCHING INTO TABLE WHERE DATA ARE NOT IN ANOTER

25 Views

Hi guys,

I need to LOOP at an internal table WHERE datas are NO contained in another.

Here comes the example you expect :

TYPES : BEGIN OF t_test,

entry TYPE string,

other TYPE i,

END OF t_test.

DATA : it_test TYPE TABLE OF t_test,

s_test TYPE t_test,

it_test2 TYPE TABLE OF t_test.

LOOP AT it_test INTO s_test WHERE entry NOT IN it_test2.

Of course this code doesn't work but it explain better what I would like to do : to loop at it_test where datas are not contained into any row of it_test2 , in the field "entry".

Thanks a lot.

--Yohann