cancel
Showing results for 
Search instead for 
Did you mean: 

loop in smartform

Former Member
0 Kudos

Hello All,

I am having a problem with smartforms and loop. I have a code defined in the smartform that call a function module and fetches data into a table in smartform, now this table is NOT a part of standard form interface, I have defined as a global paramter but not in standard form interface, now i want to loop in that table, what i think is that i can use loop only if the table i want to loop is in standard interace of form, please advise if thats the case and alternative solutions would be great,

thanks,

RS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Declare the internal table in Global Declarations .

Regards

Answers (2)

Answers (2)

Former Member
0 Kudos

HI reena,

U hav no restrictions like that. We usually use a form interface to pass internal tables or other values from the driver pgm bcoz that is what SAP recommends. u can also do it the other way ie by calling a FM within pgm lines so as to get the data. Once u have the data fetched using this method, u can use it like any other internal table that u fetch using the form interface.

Former Member
0 Kudos

There is no such restriction.

Define internal table and its work area in Global definitions.

Create a LOOP construct using these internal table and work area.