Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Print to different output tray in SAPscript/Print Workbench

Former Member
0 Kudos

Good day,

I am wondering if anyone knows how to dynamically determine what printer output tray or bin should be used within the print program of a SAPscript form? I am would like certain documents in a large billing run to print to another output tray if they match certain criteria.

Any ideas how to set up the BASIS side (printer config?) as well as the ABAP side?

Any help is greatly appreciated.

Thanks!

4 REPLIES 4

Former Member
0 Kudos

Hi Geoff,

For each tray of the printer you want to use you have to define a separate page in the SAPscript form. One of the attributes of a page is the "Resource". Here you can specify values for the tray, e.g. TRY01 is tray 1.

In your print program you can then use START_FORM to specify which page to be used and thus which tray to be used for printing.

Regards,

John.

0 Kudos

Thanks for your input John, however I think unless I am mistaken that this feature is used to specify what tray to draw the paper from to use for printing. i.e. a tray that has letterhead or legal size, etc... I am looking at a large printer with multiple output trays and I would like to know if I can output print jobs to different trays in order to make sorting/mailing easier for large numbers of bills.

Any idea for this? Maybe this is not very common??

0 Kudos

Hi Geoff,

Sorry I didn't read your question well enough... You are right, the resource attribute is used for determining the tray to get the paper from, not to send the output to.

It's indeed a very specific issue. Probably you should be able to solve this problem with the PRINT-CONTROL command. You should create a specific print-control in SPAD for the printer which contains the hex-code the printer needs to change the output tray.

But that is not an easy job...

Regards,

John.

0 Kudos

Hello Geoff.

The printer has to have correct driver. U can see it in transaction SPAD. In our case the print control SOB0X(X=0,1,2,3,4,5...) is used for output bin.

So when printing a sap script put, print-control: SOB0X, in the first windows/element.

Similar when print abap list.

Regards,

Gunnlaugur