Skip to Content
0
Former Member
Sep 23, 2005 at 01:10 AM

How to LOOP AT dynamic internal tables.

10784 Views

I have an internal table name declared in field I_DYN_TAB with me and I want to loop at this I_DYN_TAB.

( 4 example:

DATA: I_DYN_TAB(10) VALUE 'I_TAB'.

where I_TAB is my internal table with data in it.)

I already tried couple of things.

A. READ TABLE (I_DYN_TAB) WITH KEY I_DYN_TAB-FIELD1

but, it is not allowing me to read it dynamically this way.

B. LOOP AT (I_DYN_TAB). Again this is also not working.

Another option I tried is to create a field symbol for the internal table, which again is not useful or may be I am doing it wrong.

So if anybody can help me in solving this problem, it would be great.

Waiting for reply.

Regards

Arpit