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

who does hash algorithm work?

Former Member
0 Likes
1,066

Hi,

READ staments in ABAP use a hash algorithm to search information in a hashed internal table, and the runtime is independent of the number of table entries.

So, Who does hash algorithm work?

Thanks.

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
590

hi,

The hash algorithm is built up by the system automatically. You don't have to care about that, you just have to define the internal table TYPE HASHED.

hope this helps

ec

Read only

Former Member
0 Likes
590

read about hash functions in wikipedia or something similar, these are special functions.

A hash function can calculate from the key the address (line number) where the record is stored. Every insert changes the function a bit, access is like an index access only slightly slower as the calculation takes also time, we are talking of some microseconds.

You need to know the complete key, otherwise iit will noot work at all, and the read will scan the full table.

Siegfried

Read only

Former Member