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: 

Setting background print parameters for a Smartform

Former Member
0 Kudos

Hi,

I have created a Smartform being triggered from a report program. On the selection screen we have given option for the user to select printer of their choice. When I run the report in foreground it works fine and prints for whatever printer specified. However we need to run this report in the background and print to a specific printer, when I run it in background it always picks local printer as default. Can anyone help me on this?Any advise would be greatly appreciated and rewarded..

Thanks,

-Anthony.

4 REPLIES 4

Sm1tje
Active Contributor
0 Kudos

when calling your smartform, you can set the printparameters for the printer which should be used. There are function modules for retrieving these parameters and than pass them on to the smartform. Sounds bit simple, but in fact it is. You know which printer you want to use, retrieve parameters and use them.

former_member188685
Active Contributor
0 Kudos

You can use the Interface parameters CONTROL_PARAMETERS

Populate the Information like Device etc to this , this will take care.

Former Member
0 Kudos

Hi

Set the control parameters using FM

Import parameter of the generated function module: CONTROL_PARAMETERS

Component type: SSFCTRLOP

you can refer standard driver program RLB_INVOICE

http://help.sap.com/saphelp_nw2004s/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/frameset.htm

Regards

Shiva

Former Member
0 Kudos

hi ,

in the dynamic function module created by the smartform there is an option for the print parametes like...IS_PARA , you can use this for the printer settings..

regards,

venkat.