2008 May 27 8:51 AM
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.
2008 May 27 8:55 AM
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.
2008 May 27 8:55 AM
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
2008 May 27 9:15 AM
data : itab type sorted table of ty_itab,
itab1 type hashed table of ty_itab1
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |