Skip to Content
author's profile photo Former Member
Former Member

Print to different output tray in SAPscript/Print Workbench

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!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 26, 2004 at 09:36 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 05, 2004 at 07:48 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.