Skip to Content

Hashed table -- Operations on it.

Hi,

tell me any one way of inserting data in to hashed table,

and operations possible on the hashed table.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 06: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 21, 2008 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 07: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 21, 2008 at 08:38 AM

    thanks guys,

    i got the answer. points rewarded.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 21, 2008 at 08:46 AM

    thread is completed

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.