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: 

Skip pop up window while printing the smartform

0 Kudos

Hi,

I want to create a spool while posting through MIGO, this whole thing will happen in background. I want to skip the pop window for printing. How do i do this. In control parameters I have checked 'no_dialog' still it is not working.

Thanks,

Paromita

5 REPLIES 5

0 Kudos

Hi,

Please paste the code you using.

regards

former_member182041
Active Contributor
0 Kudos

Hi there,

Try by giving USER_SETTINGS = SPACE in the calling function module (this is also a smartform interface parameter).

CALL FUNCTION formname

EXPORTING

user_setting = SPACE

(rest of your parameters)

Regards,

Kumud

Former Member
0 Kudos

Hi,

DATA: ls_control_param TYPE ssfctrlop.

CALL FUNCTION lf_fm_name

EXPORTING

archive_index = toa_dara

archive_parameters = arc_params

<b>control_parameters = ls_control_param</b>

mail_recipient = ls_recipient

mail_sender = ls_sender

output_options = ls_composer_param

user_settings = space

po_header = po_header

po_address = po_address

TABLES

Ram.

Former Member
0 Kudos

Hi,

I forget to add another alternative code. check below code.

In the SSF_OPEN function module,

Set the OUTPUT OPTIONS paramter TDDEST to your printer name.

Set the CONTROL PARAMETERS and control parameters as shown below,

control-preview = 'X'.

control-no_open = 'X'.

control-no_close = 'X'.

control-no_dialog = 'X'.

control-device = 'PRINTER'.

control_parameters-no_dialog = 'X'.

control_parameters-no_open = 'X'.

control_parameters-no_close = 'X'.

OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.

OUTPUT_OPTIONS-TDNOPRINT = 'X'.

CALL FUNCTION 'SSF_OPEN'

EXPORTING

output_options = output_options

control_parameters = control

user_settings = ' '

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Ram.

0 Kudos

Hi Ram,

Try this:

data: control TYPE ssfctrlop,

control_parameters TYPE ssfctrlop.

control-preview = ' '. "change

control-no_open = 'X'.

control-no_close = 'X'.

control-no_dialog = 'X'.

control-device = 'PRINTER'.

control_parameters-no_dialog = 'X'.

control_parameters-no_open = 'X'.

control_parameters-no_close = 'X'.

output_options-tddest = p_pid.

"comment

Thanks,

Anitha A