cancel
Showing results for 
Search instead for 
Did you mean: 

Printing multiple pages on a single sheet with SAPScript

Former Member
0 Kudos

Hello,

I am using SAPScript on ECC 6.0. We currently have a form which occupies the top half of an A4 sheet of paper. The form is printed on pre-printed stationary provided by the government. The government has now issued a new version of the pre-printed stationary which allows a single page to contain the form twice. The form is a with-holding tax receipt that we issue to a vendor.

We now wish to use this stationary to print 2 different instances of the form to a single sheet. The different instances will be for different vendors and have different contents. The stationary is provided perforated so we can split them apart after printing.

Does anyone know how to make SAPScript print 2 instances of a form to a single sheet of paper using a laser printer?

Thanks in advance,

Ben

Accepted Solutions (0)

Answers (2)

Answers (2)

KalC
Active Participant
0 Kudos

Hi Ben,

Use this control command in the sap script main window and split the main window into two parts. This will solve your problem. If you require further info please let me know.

/: NEW-WINDOW

Use of this command is as described below.

Each page can consist of up to 99 main windows. Each main window is assigned a consecutive identifying number (0..98), and the windows are filled in this order. This feature enables SAPscript to print labels and to output multi-column text. When one main window fills up, the next main window on that page is taken, if there is a next one. A page break is inserted after the last main window.

You can use the NEW-WINDOW command to call the next main window explicitly, even if the current main window is not yet full.

OR****************************************

You can call this script control command through your printprogram after filling your first instance of main window using function module CONTROL_FORM.

********************************************************

reward if helpful.

Thanks & Regards,

Kalyan.

Edited by: Kalyan on Jan 4, 2008 9:50 AM

Former Member
0 Kudos

Hi Suresh and Kalyan,

Thanks for your replies. I'm going to check this on Monday and I'll let you know how I get on and I'll reward points if it all goes well.

Thanks!

- Ben

Former Member
0 Kudos

take two main windows on single PAGE i.e. copy the main window u will get 01 mian window

place both main windows on same page one below the other

i hope data variables will be same except the data.

data will be filled in seq . first in 00 main window then 01 main window and repeats so on...

call this main window as usual in the program ..

Former Member
0 Kudos

I tried the solution you both suggested and it seems to work correctly. It took a bit of fiddling with it but in the end I was able to get the window repeated.

Thanks!