Skip to Content
0
Former Member
Sep 07, 2007 at 06:12 PM

Passing Tables dynamically to Form

33 Views

Hi,

I have a small peculiar requirement, I have to pass an Internal table dynamically to

a form. Actually, this form should work for four different internal table of different types. But, the logic is same for these four tables. Depending on some condition, I

will pass different internal table to that form.

for example, I have written the code like this:

if cond1..

perform form_name using it_table1.

elseif cond2.

perform form_name using it_table2.

elseif cond3.

perform form_name using it_table3.

elseif cond4.

perform form_name using it_table4.

endif.

form form_name using it_table type any.

loop at it_table.

-


-


endloop.

endform.

This code is giving the error "it_table is not declared as table or Generic type'.

How to handle this scenario?

Could you please anybody help on this...

Thanks,

AJ