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: 

Automatic tray selection for printing

Former Member
0 Kudos
1,682

When the print out is issued from the SMARTFORM, it should automatically determine the tray for the paper (based on a pre-defined logic):

The trays can be:

Tray 1

Tray 2

Manual Feed

Is this possible in SAP? (version 4.6c)

Is there a dependency on the printer/model

Thanks,

Lakshmi.

6 REPLIES 6

vinod_gunaware2
Active Contributor
0 Kudos
174

use

CALL FUNCTION 'GET_PRINT_PARAMETERS'

regard

vinod

Former Member
0 Kudos
174

In the Page window in the output options tab you need to specify the tray in Resource(TRY1 or TRY2) or u can write in command lines node.

Regards

priya.

Former Member
0 Kudos
174

Hai lakshmi,

Yes it is possible in 4.6c.

You can use a cal function <b>GET_PRINT_PARAMETERS</b>

It Read, determine, change spool print parameters and archive parameters.It is the Only correct way to modify a print or archive parameter record (see FM documentation).

Regards,

Srikanth.

Reward points if this is useful.

Former Member
0 Kudos
174

Hi,

Do you want to define the tray statically?.

Then you can mention the tray at the page level.

Select the page and select 'output options' tab.

There you can mention the tray name with the resource field.

if you want to select the tray dynamically then ,refer the OSS note <b>367128</b> and apply the OSS note which is applicable for release 4.6 C.

<b>Implement the program correction. Afterwards, you can also enter a field (for example, ) in field 'Resource'. This field must be defined in a global manner (the type must be RSPORESNAM). You must set the value of this field before you call up the page. That is, you must either supply the value on the first page via the interface or you must set it during the initialization. If you call a page via an explicit page break, you must have set the value before the page break.</b>

<b></b>

I hope this should resolve your issue.

Thank you.

Regards,

Karuna.M

0 Kudos
174

Hi,

I also have same kind of requirement and Iam new to Smartforms.

can u explain more in detail

where to initialise,It will be helpful to me

Thanks and Regards

Raj

Former Member
0 Kudos
174

Hi Everybody,

The tray setting is fine as mentioned above, but it is fine if we print in same printer always above set parameters fine i am thinking.

If we print in different printers how we can choose A4,B4 from tray. Is there any way depend on the printer we can choose trays from programing(ABAP control) or any settings that makes based on printer changes.

Please reply .

Thanks,

Harikiran