Application Development and Automation 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: 
Read only

How to avoid the screen selection output device

Former Member
0 Likes
1,807

Hi all,

Who can tell me how to avoid the screen selection output device when running a smartform.

Best regard.

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,753

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.

Read only

naimesh_patel
Active Contributor
0 Likes
1,753

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

Read only

Former Member
0 Likes
1,753

provide all the default values required for printing.. while calling the smartform...

or else maintain default printer settings in your user profile...

Read only

Former Member
0 Likes
1,753

Hi,

In the SMARTFORM FM, pass the parameter NO_DIALOG = 'X' of structure type ssfctrlop-no_dialog.

Best regards,

Prashant

Read only

Former Member
0 Likes
1,753

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

Read only

0 Likes
1,753

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

Read only

Former Member
0 Likes
1,753

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.

Read only

Former Member
0 Likes
1,753

Hi all,

Sorry, the answers you gave me are not that i wanna get.

Who can help me??

Read only

Former Member
0 Likes
1,753

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

Read only

Former Member
0 Likes
1,753

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.

Read only

Former Member
0 Likes
1,753

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??

Read only

0 Likes
1,753

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