cancel
Showing results for 
Search instead for 
Did you mean: 

Print smartform multiple times on a page

Former Member
0 Kudos

Hello, I have a smartfrom which I'd like to print multiple times on a page. The page has only 50 mm height (label) and the length is endless (endless paper) and the desired smartform would be 15 mm heigh -> so the smartform should be printed 3 times one below the other.

So if I'd like to print 4 labels -> the output should be like this:

Paper length: endless, height: 50 mm

Smartforms: length: 60 mm, height: 15 mm

"Page 1""Page 2"
SmartformSmartform
Smartform
Smartform

Is this possible?

In the acutal coding we mark the desired objects for the label printing in an alv grid -> and in the loop we call the print program which prints the smartform.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member209818
Active Contributor
0 Kudos

This label printing requirement would be easier to handle in the SAP Script where you can have multiple Main Windows.

IN the Smartforms, you can actually use Templates which would fit on the page as per your requirement and then you need to split your data to in those many templates to print.

On Page 1 if you can fit 3 templates...

then

Template 1 ------ And its related Data to print in some structure 1

Template 2 ------ And its related Data to print in some structure 2

Template 3 ------ And its related Data to print in some structure 3

Hope this helps. !!

Former Member
0 Kudos

Using tempale is the right approch but you can try calling samrtform in loop as well.

and can chnage the print parameter accordingly.

Thanks and regards

Ashutosh.