Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Loop with template in smartform - loop not working as desired.

Hi all,

I have a smartform in which I have created multiple windows for multiple templates.

Window 1 under which I have the follo:

loop ;

Code lines;


Window 2 under which I ave the Template 2

window 3 under which I have the template 3.

Im using different templates as I need to print a label which is having cells in the form of a grid but of diff height and width.

Now Im passing internal table to my SF to avoid multiple spools.

However whne i execute my drver program and debug the smartform.,i see that when my internal table (LOOP table) contains multiple line items (e.g. 2 line items) but when i see in the work area,I see the data for the 2nd row/item of the internal table although the SY-TABIx for the loop(inernal table) i s"1".

Also data is printed only once in print preview

I guess something is wrong with my LOOP.

Can anyone let me know what im doing wrong?

Is it because of template inside a Loop or mutiple templates with multiple wndowS?


Former Member
Not what you were looking for? View more on this topic or Ask a question