Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hashed tables

Former Member
0 Likes
506

Hi experts,

I have a hashed table, which has a unique key called vbeln. The program selects vbeln into the hashed table from lips. It gives me an error ITAB_DUPLICATE_KEY. My question is how can I avoid to select duplicate entries into this table. The program is sorting the hashed table and deletes the adjacent duplicates, but I think it's not a good solution, because before the sorting and deleting it selects duplicates into this hashed table which results a short dump. What would be the best solution to handle this problem. I thought about to change the type of the hashed table, but it can contain a hugh amount of data and if I change the type of it, then it could be very slow to read data from the internal table.

I hope somebody can help.

Thanks in advance!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

I not sure if i understood correctly but i would write a more specific select perhaps

SELECT DISTINCT FIELDA FIELDB INTO ...

Hope this helps

2 REPLIES 2
Read only

Former Member
0 Likes
462

I not sure if i understood correctly but i would write a more specific select perhaps

SELECT DISTINCT FIELDA FIELDB INTO ...

Hope this helps

Read only

Former Member
0 Likes
461

Hi,

how about SELECT SINGLE...?

it selects the first row only if we have multiple entries.

<REMOVED BY MODERATOR>

teja.

Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:09 PM