11-28-2007 2:18 AM
Hi all,
Who can tell me how to avoid the screen selection output device when running a smartform.
Best regard.
11-28-2007 3:36 AM
Hi Steven,
You can try below code.
DATA: l_control_param TYPE SSFCTRLOP.
l_control_param-no_dialog = 'X'.
CALL FUNCTION l_funcname
EXPORTING
CONTROL_PARAMETERS = l_control_param.
11-28-2007 3:36 AM
You need to pass the control parameter NO_DIALOG = 'X'.
Like:
data: ls_control_param type ssfctrlop.
ls_control_param-no_dialog = 'X'.
call function lf_fm_name
exporting
.....
control_parameters = ls_control_param
.....
Regards,
Naimesh Patel
11-28-2007 3:37 AM
provide all the default values required for printing.. while calling the smartform...
or else maintain default printer settings in your user profile...
11-28-2007 3:39 AM
Hi,
In the SMARTFORM FM, pass the parameter NO_DIALOG = 'X' of structure type ssfctrlop-no_dialog.
Best regards,
Prashant
11-28-2007 3:43 AM
Hi all,
Thanks for your answer. But it also doesn't work after i pass the no_dialog to the parameters. The screen for selecting the output device is still dispalyed.
Can you give me some detailed points??
Best regard
11-28-2007 3:46 AM
You might not have the Output device maintained than you have to do it like:
CONTROL_PARAM-DEVICE = 'LOCL'.
CONTROL_PARAM-PREVIEW = 'X'.
CONTROL_PARAM-NO_DIALOG = 'X'.
Regards,
Naimesh Patel
11-28-2007 3:58 AM
Hi,
In smart forms we have output options there we need to give device name like eg:lp01 if we give there then it wont give selection screen for outputdevice
hope it is asnwered.
11-28-2007 4:21 AM
Hi all,
Sorry, the answers you gave me are not that i wanna get.
Who can help me??
11-28-2007 4:44 AM
Hi,
Check whether default Output device (ex:LOJP) is given in tran.code SU3. If it is not set, even if NO_DIALOG is set as 'X', the dialog box for selecting output device will appear.
Ramesh
11-28-2007 4:54 AM
hi,
while executing smartform we will get a function module in we il b having CONTROL_PARAMETERS in that u need to mention the device name screen no and all detials.
i thnk this will solve ur problem.check this.
11-28-2007 4:57 AM
Hi ,
I try to solve it using the points. But all of them doesn't work.
Can you give me a detailed list how to set the values for parameters??
11-28-2007 5:02 AM
Hi,
data: wa_SSFCTRLOP type SSFCTRLOP.
wa_SSFCTRLOP-DEVICE = 'PRINTER'.
wa_SSFCTRLOP-NO_DIALOG = 'X'.
wa_SSFCTRLOP-PREVIEW = 'X'.
in the function module
call function '....
exporting
CONTROL_PARAMETERS = wa_ssfctrlop
.....
regards,
Santosh Thorat