This website is not affiliated with, sponsored by, or approved by SAP AG.

Sapscript duplex printing with implicit page breaks RESOLVED

Development SAPscript/ Smartforms

Moderators: thx4allthefish, Snowy, Gothmog, YuriT

Sapscript duplex printing with implicit page breaks RESOLVED

Postby Vindaloo » Thu Jan 06, 2005 6:11 am

Hi,

I need to print out Terms and Conditions on the reverse side of each page in a copy of form MEDRUCK. I don't have any problem setting up the duplex mode or page sequences, but during an implicit page break how do you suspend the current output and switch to the Terms and Conditions, and then resume the current output on the next page?

For example, printing a PO with items that span over more than 1 page will need the terms and conditions printed in between.

A search of the forums hasn't helped as existing topics all relate to problems just getting duplex to work.

I'm using the standard print program SAPFM06P.

Thanks,
Vindaloo

Vindaloo
 
Posts: 159
Joined: Mon Dec 09, 2002 4:45 am
Location: UK

Postby ujjwalk » Thu Jan 13, 2005 7:45 am

Hi Vindaloo

Create two pages, one with the MAIN window for data(call it FRONT for illustration) and another with the terms and conditions(Call this BACK). In the PAGE tab in sapscript, the next page for FRONT is BACK and the next page for BACK is front.

This should resolve.

Thanks
Ujjwal
ujjwalk
 
Posts: 28
Joined: Wed Apr 02, 2003 2:43 pm

Re: Sapscript duplex printing with implicit page breaks

Postby Vindaloo » Mon Jan 17, 2005 7:48 am

Ujjwal wrote:Create two pages, one with the MAIN window for data(call it FRONT for illustration) and another with the terms and conditions(Call this BACK). In the PAGE tab in sapscript, the next page for FRONT is BACK and the next page for BACK is front.


Vindaloo wrote:I don't have any problem setting up the duplex mode or page sequences


Thanks for your reply Ujjwal, but when the page breaks how do you get the terms and conditions onto page BACK? Without a MAIN window they don't get printed, and if I add a MAIN window then the PO item data will be printed which I don't want.

Regards,
Vindaloo
Vindaloo
 
Posts: 159
Joined: Mon Dec 09, 2002 4:45 am
Location: UK

Postby dustnbones » Wed Jan 19, 2005 1:01 pm

I'm having this exact same problem.

It seems the only way to get the smartform to bounce back and forward from the main page to the backing page is to have the main window continuing on the backing page. Unfortunately I have been unable to suppress the output of the main window on the backing page (setting height to 0 doesn't work for example).

There must surely be a way of doing this? This doesn't seem an unusual requirement...
dustnbones
 

Postby dustnbones » Thu Jan 20, 2005 8:36 am

Oh no my mistake....

Ujjwal did have the right answer. If your front page (with the main window on it) points to the back page and the back page points to the front then it will work. You also need a copy of the back page which doesn't point anywhere and a command at the end of the main window to get there so the final page has a back as well...

Hope that makes sense!
dustnbones
 

Postby Vindaloo » Tue Feb 01, 2005 10:04 am

Finally got it all to work - I've listed the definition below as reference for anyone else trying to do this:

Code: Select all
Page   Counter     Next Page   Print Mode
-----------------------------------------
FIRST  Initialise  BACK        D
BACK   Unchanged   NEXT       (blank)
NEXT   Increase    BACK        D
LAST   Unchanged  (blank)     (blank)

Pages BACK and LAST contains the Terms and Conditions text (which I've actually got in a bitmap as the font is too small for Sapscript).

In element LAST in the Main window (the very last text element before the form is closed), I've added the following command to force the Terms and Conditions onto the back of the last page:
Code: Select all
NEW-PAGE LAST


Page LAST is required in addition to page BACK, the difference being that there is no next page defined (if you try to use page BACK as the last one it generates another blank page after itself).

I have one problem remaining: the layout set is defined as Landscape, the first page prints as landscape (front and back) but subsequent pages print as Portrait. The Print Preview shows the page orientation correctly, so hopefully this is something to do with SAPLPD - I haven't yet got the duplex printer connected directly to SAP.

Thanks Dustnbones & Ujjwalk

Regards,
Vindaloo
Vindaloo
 
Posts: 159
Joined: Mon Dec 09, 2002 4:45 am
Location: UK

Postby Stripe » Wed May 11, 2005 1:23 am

This helps me a lot, thank you very much for the post.
Stripe
 

Re: printing terms & conditions on back side of smartfor

Postby mmabap » Fri Aug 31, 2007 3:50 am

Hi,

I am trying to print terms & conditions on the back side of every pages of smartforms but the problem is that it is not printing the terms and conditions at the back of last page.
mmabap
 
Posts: 1
Joined: Fri Aug 31, 2007 3:38 am

Postby Vindaloo » Fri Aug 31, 2007 3:59 am

Read my post from Tue Feb 01, 2005 3:04 pm and make sure that you've got the NEW-PAGE {last_page} command as the last thing in the MAIN window - it sounds like this is missing.

Regards,
Vindaloo
Vindaloo
 
Posts: 159
Joined: Mon Dec 09, 2002 4:45 am
Location: UK


Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 2 guests




This website is not affiliated with, sponsored by, or approved by SAP AG.