08-09-2011 10:21 PM
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
08-09-2011 10:28 PM
08-10-2011 6:27 AM
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
08-10-2011 7:27 AM
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.
08-10-2011 7:33 AM
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.
08-10-2011 9:42 AM
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