cancel
Showing results for 
Search instead for 
Did you mean: 

SAP SCRIPT Duplex printing of pages

Former Member
0 Kudos

Hi All,

I have a unique requirement, I am working on FI check printing using sap script. I have the check design pretty much completed. My issue is with the sequence of the pages that needs to be printed. I have to print the first page which will have the check on the pre printed check material from the first tray and anything that is overflowing will be printed on a regular paper on tray 2. this is easy to achieve, but the last bit of this requirement is to print a last page which will have the company's logo and address and the receiver address and this page needs to be printed on the back of the check page, that is behind the first page. So the sequence will be first page (has to be duplex printing to print the last page with the address)  -> next page (only if overflow) ->  last page (print on the back of the check). So far I have tried to achieve this by changing the next page of each page, but nothings worked. I have the first page set for duplex printing and to print from tray1, next page to print from tray2 and last page to again print from tray1. Also changed the driver program to call the last page just before the close form, that didn't help too. That's the whole scenario, I have copied the standard check printing driver program RFFOUS_C. I would appreciate any sort of ideas to achieve this. Thank you!!

Accepted Solutions (1)

Accepted Solutions (1)

alexander_bolloni
Contributor
0 Kudos

Hi,

to me, your sequence does not make sense: how can you first print from tray 1 (check paper), then overflow page from tray 2, and then recipient address (in duplex mode) on the back of the 1st page which came from tray 1 ??? The 1st page has long been printed when your print data stream arrives at page 3.

If you need 1st page printed duplex (check on front and address on back), you need to run your smart form in that sequence, too. So 1st page with check, printmode=D(UPLEX), tray = 1, 2nd page is the back of the 1st page (printmode= DEFAULT, no tray selection), and then you need to find out if you need to print "overflow" and use a 3rd page with Tray = 2 and printmode = default.

Makes sense?

  Alex


Florian
Active Contributor
0 Kudos

Hi Alex,

I read the above again and i understand that he wants to print the address on the back of the cheque-paper.

If you are correct with your interpretation you need of course an other sequence, something like that:

PRINT-CONTROL duplex ON (you know the correct controls, so this is just the point in time)

ADDRESS and LOGO (default tray duplex ON)

NEW-PAGE

PRINT-CONTROL duplex OFF (now we should be on the back of the paper)

do the overflow things

NEW-PAGE

Preprinted Check-paper (TRY01)

~Florian

Former Member
0 Kudos

Thanks guys for your reply, Since I was working with a standard driver program I was hoping to achieve this just with the script. But I guess I have no option but to tinker with the driver program, the LDB will make it hard but ill give it a shot. thanks again.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi All,

We finally got the new check printer last week and the duplex printing is working perfectly. The MICR code is also printing on the check and also the duplex printing and the overflow is working perfectly as well. We used the TROYMICR as the device type, only problem we faced was that since the printer did not have a tray 01 we had to use tray 02 and tray 03 for the overflow and TROYMICR did not have the control sequence for TRAY03. So I had to get the basis guy add the print control sequence for TRAY03 after which the overflow page started to print from tray03. Thank you all for your help, I learnt a lot about printers and print controls during this time and also to despise sap scripts some more .

Former Member
0 Kudos

Hi guys,

I made the changes in the driver program (copied standard and changed the include), now the sequence is coming out correctly. the spool looks like check page -> address and logo -> overflow if any, which is perfect. But when I print, it still prints on separate pages and not duplex. the settings that I have maintained on my sap script is like below:

check page - print mode: D and resource name: TRY01

address page -> both are blank that is default

overflow page -> resource name is TRY02 and print mode is default.

I checked the printer settings and its print mode is set to Default: Printer default setting.

Do I need to change this to duplex also? I know the printer has the ability to print duplex because they did that through the legacy system too and I did get my script to print duplex a couple of days ago but I have changed it so much since then that I don't remember what the settings were then.

Thank you!!

Florian
Active Contributor
0 Kudos

Hi vikas,

you need to test the duplex-mode. Most of the times something is wrong in the backend, so that the SAP-commands aren't sucessfully processed at the printer because of the printserver.

My first step would be to test with your basis-guys if the printer does interpret all commands out of SAP correct.

~Florian

Private_Member_7726
Active Contributor
0 Kudos

EDIT in: and to answer your actual question... no, normally you'd not need to change the default print mode on output device for form printing - you have the means to, and are actually trying to controll it explicitly. It can even be counterproductive - if the stuff that has no means of controlling output mode explicitly, or has difficulty doing so (ABAP lists are likely culprits), has until now relied on printer default...

In case you do have to trouble-shoot this on your own rather than relaying on Basis guys being able to sort it out:

Firstly, just to be 100% sure the SAP side of solution is behaving correctly up to and including the creation of spool request,  please check in the spool request RAW display if the OTF OP (open page) commands really contain what you are expecting in terms of "tray resource" and print mode. Here is the OTF command reference. I believe, it would not harm to explicitly set the print mode to what you want it to be for (overflow page -> resource name is TRY02).


Secondly, again just to be 100% sure and narrow down where the root-cause lies, please double check in SPAD that the TRYxx, SPMDU, SPMSI and SPMTU print controls of the device type used do contain correct tray control and print mode control commands. This can be somewhat tricky - please come back with details of device type used and contents of print controls if you need help with that... You wrote that printer could print duplex (from the legacy solution) and not that they already could print duplex on the printer in question via SAP device type...


Thirdly, despite claiming to be and being SAP certified, unfortunately not all printer manufacturer device types ensure 100% implementation of SAP's print mode specification "out of the box"...

For example, the Xerox devices were ignoring the tray and print mode if it was issued on what they were identifying as back-side of a duplex page... In other words, once duplex mode was switched on, the printer expected that the back-side page to front-side it had just printed will always be sent - as next page... To the Xerox credit, their local specialists murmured among themselves something about SAP-this-and-SAP-that for a while but in couple days solved the issue by modifying their SAP (PostScript) device type to automatically insert the requisite empty back-side pages for duplex where they were "missing" (the alternative would have been us programming them into all forms)... Your problem seems to be related to something else, but just to give an idea that the things do not always work out of the box...

Whatever you change on your own outside of form, do it only after (written) advice from Basis and printer manufacturer representatives that it's a good thing to do - so they can't claim you broke their wonderfully set up and fine-tuned solution and now have to alone own all the problems with it You'll have to own them one way or the other if you have to support forms (the end result), but just so the responsibility is at least shared...


Cheers and good luck,

Jānis

Message was edited by: Jānis B

Former Member
0 Kudos

Hi Janis,

Thank you for your reply, as per your suggestion I did check the device types we were using and it was missing the print controls for duplex printing although the code for tray are present. I have had to put my testing on a hold for now since the client is planning to buy a new printer. Related to that we suggest to our client to buy troy printers and they chose "TROY MICR 3015dn". now they want us to confirm before they buy that there will be no issues with this printer since they have seen a few OSS notes related to issues with  old fonts not working with new troy printers. Has anyone here had problems with printing micr in new troy printers or has any suggestions if we shouldn't go for it?

thank you!!

Florian
Active Contributor
0 Kudos

Hi vikas,

best solution would be to have a look into the SAP Printer Vendor Program and figure out what is supported. Additional to that, work through the requirements and make sure, everything will work fine.

I also used this model a few times and never faced any problems with it. It is a PCL-compatible printer, so in my opinion there shouldn't be any issues.

~Florian

PS: Maybe you can order a test-printer and do some testing.

Florian
Active Contributor
0 Kudos

You need to change the set to this

do it in that way and I'm pretty sure it will work

Make sure all the options are working fine. You can test the Tray-printing with the SO10-Text SAPSCRIPT-TRAYTEST

also make sure your duplex-command is correct interpreted by the device-type.

This is a scenario I implemented more than one time and it always worked fine.

Perhaps you have to check with your basis guys and have a look into the SAP Printer Vendor Program with your device-type/printer is this is all supported.

Here is how to control the pages, but you already mentioned it in that way above:

PRINT-CONTROL duplex ON (you know the correct controls, so this is just the point in time)

First - Preprinted Check-paper (TRY01)

NEW-PAGE Command ( switch to your Address and logo page)

PRINT-CONTROL duplex OFF

NEW-PAGE

do the overflow things

~Florian