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

Urgent

Former Member
0 Likes
495

Hi,

1.How to create Sorted & Hashed internal tables?

2.What is Hash Algorithm?

Thanks in advance.

Hi,

1.How to create Sorted & Hashed internal tables?

2.What is Hash Algorithm?

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
475

Hi,

Please refer the link below:

http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm

Thanks,

Sriram Ponna.

P.S. Before posting any search in SDN will have lot of threads on the same.

Read only

Former Member
0 Likes
475

Hi,

Standard tables are managed system-internally by a table index. New rows are either attached to the table or added at certain positions. The table key or the index identify individual rows.

Sorted tables are managed by a table index (like standard tables). The entries are listed in ascending order according to table key.

Hashed tables are managed by a hash algorithm. There is no table index. The entries are not ordered in the memory. The position of a row is calculated by specifying a key using a hash function.

The generic table types define a generic table type that can only be

used for typing formal parameters and field symbols:

ANY TABLE includes all table types.

INDEX TABLE includes all standard tables and sorted tables.

Hash Algorithm:

A hash function is any well-defined procedure or mathematical function for turning some kind of data into a relatively small integer, that may serve as an index into an array. The values returned by a hash function are called hash values, hash codes, hash sums, or simply hashes.

Hash functions are mostly used to speed up table lookup or data comparison tasks --- such as finding items in a database, detecting duplicated or similar records in a large file, finding similar stretches in DNA sequences, and so on.

Hash functions are related to (and often confused with) checksums, check digits, fingerprints, randomizing functions, error correcting codes, and cryptographic hash functions. Although these concepts overlap to some extent, each has its own uses and requirements. The HashKeeper database maintained by the National Drug Intelligence Center, for instance, is more aptly described as a catalog of file fingerprints than of hash values.

For more details:

[Hash Function|http://en.wikipedia.org/wiki/Hash_function]

Regards

Kannaiah

Read only

Bema
Active Participant
0 Likes
475

data : itab type sorted table of ty_itab,

itab1 type hashed table of ty_itab1