cancel
Showing results for 
Search instead for 
Did you mean: 

not looping in the smart form

Former Member
0 Kudos

I have created a driver program and i have all the concerned data in the driver program and i am passing this to the smartform..

suppose i have 10 records, i am passing this to the smartform.. but the smartform is printing only the last record.

i am looping in the smartform but the loop is not going into all the concerned template for each record

can you pls help in this regard

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member203305
Active Contributor
0 Kudos

Hi,

First, put a break in the smartform and check if the table is ok, with 10 registers.

After that, what u need to do is

statement LOOP (table into wa)

TEMPLATE (using wa)

ENDLOOP.

It should work without problems.

Regards

Former Member
0 Kudos

Template is used, where we know how many record are to be printed (for static case) in advance, eg summation of amount , to print all the records of an internal table, kindly use Table node, whose size is dynamically changes.

Regards,

Mrinal

Former Member
0 Kudos

templates can be used when you know the exact number of rows. For dynamic rows it is better to use table.

amit_khare
Active Contributor
0 Kudos

Templates dont add rowsdynamically to the form. Use Table Node.

In Tamplate its over writing the records and only displaying last record.