Skip to Content
0
Former Member
Apr 14, 2010 at 08:51 AM

Problem using HASH TABLES

45 Views

Im trying to use hash table in a program but Im gettin an error I cant understand...

DATA gt_kna1 TYPE HASHED TABLE OF kna1 WITH UNIQUE KEY kunnr.

SELECT kunnr INTO TABLE gt_kna1

FROM kna1.

Im gettin this error:

An entry was to be entered into the table "\PROGRAM=ZTABLA_HASH\DATA=GT_KNA1" (which should havehad a unique table key (UNIQUE KEY)).

However, there already existed a line with an identical key.

But this is impossible, the field kunnr is key in table kna1.

Does Anybody know why Im gettin this dump?

Regards