on 07-30-2009 2:35 PM
Hi Experts,
I wanted to print the set of the smartforms direclty on the printer without the print prview. What would be the set of output_options and control_parameters for the same in SSF_OPEN FM?
Thanks in advance.
Warm regards,
Harshad.
Hi,
Follow these things in your driver program.
DATA: x_control_parameters TYPE ssfctrlop,
x_output_options TYPE ssfcompop.
CONSTANTS:
c_x TYPE char1 VALUE 'X',
c_001 TYPE char3 VALUE '001',
c_printer TYPE char7 VALUE 'PRINTER'.
x_output_options-tdimmed = c_x.
x_output_options-tddest = p_prin.
x_output_options-tdnewid = c_x.
x_output_options-tdreceiver = sy-uname.
x_output_options-tdcopies = c_001.
x_control_parameters-device = c_printer.
x_control_parameters-no_dialog = c_x.
x_control_parameters-langu = sy-langu.
and in your function module.
CALL FUNCTION f_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = x_control_parameters
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = x_output_options
you need to pass x_control_parameters and x_output_options along other inputs.
here no_dialog is enough for your requirement remaining are for your reference only.
Thanks,
Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You have to set the output_options-TDNOPREV = 'X'.
Regards,
Himanshu Verma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Harshad Mishrikotkar ,
set your control structure by referring the link below and
call FM ssf_open and pass the control structure
Eg
control-preview = 'X'.
control-no_open = 'X'.
control-no_close = 'X'.
control-no_dialog = ''.
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.
[http://help.sap.com/saphelp_nw04/helpdata/en/71/9ccd9c8e0e11d4b608006094192fe3/content.htm] - setting control structure
[http://help.sap.com/saphelp_nw04/helpdata/en/64/bf2f12ed1711d4b655006094192fe3/frameset.htm] - printing several forms in one request
thanks
chinnaiya P
Edited by: chinnaiya pandiyan on Jul 30, 2009 7:18 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.