cancel
Showing results for 
Search instead for 
Did you mean: 

query regarding templates in smartforms

0 Kudos

Hi friends,

In my smartforms, I have used templates to display tabular data and i have defined line no. and column no. under text elements.Now, the data that is coming in the output is repetitive that is its not looping the table although i have used an external LOOP and defined my table and work area in it.

Could anybody help me in making the loop part work?

I will certainly reward points for the desired answer.

Thanks & Regards,

Rishi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

If you have already set the internal table and the work area, i believe, it just the proper sequence of the node that get something wrong.

Moreover, place the Loop node , the Program Line node and the template node inside the main window....

The template node must be under the Loop node. See below, the proper sequence....

MAIN window

PROGRAM LINE NODE -->place your select statements here...

LOOP NODE --> on the data tab, define your Internal table and workarea

TEMPLATE NODE --> place this node, under the loop node

text node -->this is the first column. Place here the field names. ex.: &wa-fieldname1&

text node -->this is the second column Place here the field names. ex.: &wa-fieldname2&

text node -->this is the third column Place here the field names. ex.: &wa-fieldname3&

text node -->this is the fourth column Place here the field names. ex.: &wa-fieldname4&

After which, run your form...

I hope it solves your problem. Rewards if useful...

Answers (0)