Skip to Content
0
Apr 26, 2014 at 01:27 PM

sorted table with a unique key

4393 Views

Hi,

I have created a sorted internal table with unique key as under -

DATA : ITAB TYPE SORTED TABLE OF SFLIGHT WITH UNIQUE KEY CARRID CONNID.

Now the internal table already has a record with say CARRID = 'AA' and CONNID ='0017'

However when i try to insert one more record in the internal table with same key say CARRID = 'AA' and CONNID ='0017'

it does not give me any error. Should not it give me an error as it is table with UNIQUE key and should not allow duplicates