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

Hashed table.

Former Member
0 Likes
567

I want to read next record in hashed table.

I cant use sy-index here.So how to read a next line.

I cant use with key also since its a dynamic one .

i set a counter & found the line number but how to read tht record using tht line number.

Can any one help me..

Thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
546

Hi!

There's only 1 question yet, why are you using hashed table then? Use standard one instead...

Regards

Tamá

Read only

0 Likes
546

in the function module its declared as a dynamic hashed table.

if i use standard table i cant modify the data & pass it to the FM it throws type compatibility error.

Hope u understood..

Thanks.

Maya.

Read only

0 Likes
546

[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.

Reward Points if useful.

Regards,

Abhishek

Read only

Former Member
0 Likes
546

Hi,

I does not make sense to read the next record in a hashed table. The order in the hashed table is irrelevant, you must come with the table key, so always read with table key, even if the table is just increased somehow.

Siegfried

Read only

Former Member
0 Likes
546

Hi,

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 ..."

<b>Access time using the key is constant, regardless of the number of table entries</b>.

Regards,

Maha