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: 

How to avoid the screen selection output device

Former Member
0 Kudos

Hi all,

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

Best regard.

12 REPLIES 12

Former Member
0 Kudos

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.

naimesh_patel
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

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

former_member223537
Active Contributor
0 Kudos

Hi,

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

Best regards,

Prashant

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi all,

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

Who can help me??

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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