Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem using HASH TABLES

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

Former Member
Not what you were looking for? View more on this topic or Ask a question