Skip to Content
0
Former Member
Oct 14, 2011 at 04:47 PM

Dynamic LOOP in Internal Table Error

15 Views

Hi,

I have Dynamic Internal Table : <LT_TX>


<LT_TX>

Col A        Time           Number
A1              01.2011        10
A2              02.2011         10
A1              03. 2011         10

How do I do LOOP AT on <LT_TX> with KEY COLA = A1 and hence ONLY LOOP AT 'A1' in THIS DYNAMIC INTERNAL TABLE.


if I do like this, below i get an error, how to only LOOP AT A1 ones ?

data: firstcol type string value 'ColA'.

LOOP AT <LT_TX> ASSIGNING <LS_TX> WHERE (firstcol) = 'A1'.

ERROR:  in LOOP ... WHERE the line type of the table must be statically defined.

Advice please