‎2006 Jun 13 4:27 PM
Hi Guys,
I have a requirement to print multiple labels per label sheet against a TO.So if a TO has 5 line items,3 should be printed on one sheet and the next 2 should go on a new sheet.I have read the other thread on the forum regarding labels but havent really got what i am looking for.Can someone please advice me on this.I will be expecting all my data in an internal table to the smartform but how to control only 3 labels on one sheet and others on the following is where i am stuck.If anyone has done something like this before please suggest.
Thanks
‎2006 Jun 13 4:59 PM
Hi,
Its very simple.
Take only one Main Window in your layout.
And Create LOOP Node. With in the LOOP node, create 3 TEMPLATEs to print Labels in a sheet.
So, when the LOOP is started, you have to read the first, second, third record using Program lines node. Then you can print 3 labels in the sheet.
then trigger a pagebreak node using COOMAND.
Tehn it automatically reads remaining 3 records for the second page and futher to third page so on..
Within a single Loop, you are printing 3 records from internal table. Keep a flag to avoid printing of same records in the next loop.
regards,
ram