on 04-15-2009 9:05 PM
Hi Experts,
I have developed one report to send smartform copy to the printer without print preview. It is working fine. But print pop-up window is displaying. i mean.. as soon as report executes it will display user-interaction pop-up window. So, user press everytime OK button.
It seems this is windows print pop-up window. not SAP.
I would like to suppress this print pop-up window and smartform copy should send directly to the printer.
what should I do? Any configuration need to do? Pls help me.
Note: I am passsing NO_DIALOG = 'X' in the control parameters of the smartform function module.
T_CONTROL-PREVIEW = ' '.
T_CONTROL-NO_DIALOG = 'X'. "X no dialog
T_CONTROL-DEVICE = 'PRINTER'.
T_SSFCOMPOP-TDDEST = 'LOCL'.
T_SSFCOMPOP-TDNOPREV = 'X'. "X no print priv
T_SSFCOMPOP-TDIMMED ='X'.
T_SSFCOMPOP-TDDELETE = 'X'.
CALL FUNCTION FNAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS = arc_params
CONTROL_PARAMETERS = T_CONTROL
MAIL_APPL_OBJ =
MAIL_RECIPIENT = lvs_recipient
MAIL_SENDER = lvs_sender
OUTPUT_OPTIONS = T_SSFCOMPOP
USER_SETTINGS = ' '
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
ITEM_TAB = ITAB
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Thanks
Raghu
You're in the right way.
Modify fields of the structures T_CONTROL and T_SSFCOMPOP .
In some ocasion i have to fill options from sap user because the pop up appears
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
Set the T_CONTROL PARAMETERS and control parameters as shown below,
T_control-preview = 'X'.
T_control-no_open = 'X'.
T_control-no_close = 'X'.
T_control-no_dialog = 'X'.
T_control-device = 'PRINTER'.
T_control_parameters-no_dialog = 'X'.
T_control_parameters-no_open = 'X'.
T_control_parameters-no_close = 'X'.
T_SSFCOMPOP-TDDEST = 'PRINTER NAME'.
T_SSFCOMPOP-TDNOPRINT = 'X'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
output_options = T_SSFCOMPOP
control_parameters = t_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.
Thanks
Naresh
when I pass printer name to the T_SSFCOMPOP-TDDEST, it is working.
But I am passing printer name as LOCL.
LOCL is configured as local default printer. I mean if I set default printer as 'ZA01' in my windows, it should print that printer.
How can we findout which one is the windows default printer of that particular system.
Any one has idea.
Thanks
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.