Skip to Content
0
Jul 16, 2008 at 05:35 AM

Subroutine showing error in include program with changing parameter

31 Views

Hi Friends...,

Iam getting Error.....

> In "LOOP... WHERE..." the line type of the table must be statically defined.

For following code...

In function module sourse code...,

data: itab2 type standard table of <db>,

itab3 type standard table of <db>,

st1 type <db>,

st2 type <db>,

st3 type <db>.

perform sub_rt using st1

changing itab2

itab3

st2

st3.

In F1 include of that FM..,

form sub_rt using st1

changing itab2 type standard table

itab3 type standard table

st2 type <db>

st3 type <db>.

loop at itab2 into st2 where f1 = st3-f1

and f2 = st1-f1

/////////

endloop.

Plz let me know if any solutions for this..,

By removing this where conditon...

> not showing any error...

or By writing Check syntax for those two values...like

loop at itab2 into st2.

check st2-f1 = st3-f1 and st2-f2 = st1-f1.

//////

endloop.

> Also not showing any error.

Plz Let me know if u want any further clarification.

Thanks,

Naveen.I