‎2008 Jan 21 6:53 AM
Hi,
tell me any one way of inserting data in to hashed table,
and operations possible on the hashed table.
‎2008 Jan 21 6:57 AM
Hi Kranthi,
You can only access a hashed table using the generic key operations or other generic operations (SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM to INSERT itab within a LOOP) are not allowed."
Hashed table is useful when your have to work with very big internal table and to read it with
"READ TABLE WITH KEY ..."
And,
http://If its possible to declare a standard table with same type as hashed table.
Move your data to a standard table with the same Type as your dynamic hashed table.
tb_stand] = tb_hash[.
And access the records of the standard table.
kindly reward if found helpful.
cheers,
Hema.
‎2008 Jan 21 6:57 AM
Hi Kranthi,
You can only access a hashed table using the generic key operations or other generic operations (SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM to INSERT itab within a LOOP) are not allowed."
Hashed table is useful when your have to work with very big internal table and to read it with
"READ TABLE WITH KEY ..."
And,
http://If its possible to declare a standard table with same type as hashed table.
Move your data to a standard table with the same Type as your dynamic hashed table.
tb_stand] = tb_hash[.
And access the records of the standard table.
kindly reward if found helpful.
cheers,
Hema.
‎2008 Jan 21 7:07 AM
then how does hashed table can be filled, before i read the same with many options you have given, it should have data before i copy it to some other internal table?
so how can it be filled?
my question is how to insert data into hashed internal table.
‎2008 Jan 21 7:02 AM
Take a look at this sample code:
http://www.sap-basis-abap.com/abap/use-hashed-tables-to-improve-performance.htm
It shows the different operations done on hashed tables.
‎2008 Jan 21 7:04 AM
Hi..
About hashed table..
Defines the table as one that is managed with an internal hash procedure. You can imagine a hashed table as a set, whose elements you can address using their unique key. Unlike standard and sorted tables, you cannot access hash tables using an index. All entries in the table must have a unique key. Access time using the key is constant, regardless of the number of table entries.
You can only access a hashed table using the generic key operations or other generic operations ( SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed.
U can have other operations like MODIFY statement
APPEND, COLLECT, INSERT, READ TABLE ..but
With all changing accesses to individual rows of sorted and hashed tables you must not change the content of the table key.
regards
Sheeba
‎2008 Jan 21 7:18 AM
i want fill hash table expilcitly using work area not from select statement?
please suggest solution.
‎2008 Jan 21 8:38 AM
‎2008 Jan 21 8:46 AM