This website is not affiliated with, sponsored by, or approved by SAP AG.
Development SAPscript/ Smartforms
9 posts • Page 1 of 1
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.
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 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.
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...
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!
Finally got it all to work - I've listed the definition below as reference for anyone else trying to do this:
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:
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
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.
9 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests