Skip to Content
0
Jun 22, 2007 at 05:49 PM

Compare 2 internal tables

11 Views

Hi all,

I need a good algorithms for the next question:

Given 2 internal tables with the same structures, i need to print out the difference between the 2 tables .

types : BEGIN OF ty_s_table,

PERSONNR type i,

END OF ty_s_table.

DATA : itab1 TYPE TABLE OF ty_s_table,

itab2 TYPE TABLE OF ty_s_table.

For example : if itab1 contains the persons 1 , 2 , 3 , 5 and

itab2 contains the persons 2 , 4 , 6.

I need to print 1,3,4,6 (difference)

Thanks