Skip to Content
0
Former Member
Jan 29, 2009 at 11:47 AM

READ TABLE on REF TO DATA Table

5148 Views

Hi Folks!

And again I got a little question abount accessing dynamically created data structures =)

I got a table type called zzcca_t_data which has a REF TO DATA as rowtype.

I am creating the type of each row in runtime, because it depends on users input.

I was wondering, if there is a way to random access a certain row in that table by using a key, like:

READ TABLE ..... WITH KEY = ...

I am afraid, that there is no standard way to do that, maybe some special object components etc?

My idea is to make sure, that the table is sorted by a certain criteria and the implement a binary search on it using an index and access the table using

READ TABLE ..... INDEX ...

Is there a better way to do that?

Thanks a lot in advance!!

Best regards!

Kamil