03-30-2008 9:37 PM
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.
03-31-2008 9:06 AM
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.
03-31-2008 9:09 AM
You can use the Interface parameters CONTROL_PARAMETERS
Populate the Information like Device etc to this , this will take care.
03-31-2008 9:10 AM
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
03-31-2008 9:19 AM
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.