on 09-18-2008 10:06 AM
Hi,
Does anyone know how the 'send_error" comes from?
I want to disable the default printer screen from pop out, below is the code that i have written.
anything wrong with that?
*ls_control_param-preview = 'X'.
*ls_control_param-no_open = 'X'.
*ls_control_param-no_close = 'X'.
ls_control_param-no_dialog = 'X'.
ls_control_param-device = 'PRINTER'.
ls_composer_param-TDDEST = v_dest.
*ls_composer_param-TDNOPRINT = 'X'.
SSR6379.eo ****smartform ****
CALL FUNCTION l_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
control_parameters = ls_control_param
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
output_options = ls_composer_param
USER_SETTINGS = 'X'
USER_SETTINGS = '' "SSR6379.n
adrnr = l_adrnr
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE i042. " Error in creating the printout
LEAVE LIST-PROCESSING.
ENDIF.
also use
OUTPUT_OPTIONS
You have to set the following parameters
TDDEST = 'LOCL'
TDNEWID = 'X'
TDIMMED = 'X'
For the control parameters you can use the below..
ls_control_param-preview = 'X'.
ls_control_param-no_dialog = 'X'.
ls_control_param-device = 'PRINTER'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
u will have to write like this
DATA : W_ITCPO type table of ITCPO WITH HEADER LINE.
W_ITCPO-TDPREVIEW = 'X'.
W_ITCPO-TDDEST = 'LOCL'.
W_ITCPO-TDIMMED = 'X'.
W_ITCPO-TDDELETE = ''.
APPEND W_ITCPO.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
DEVICE = 'PRINTER'
DIALOG = ''
FORM = W_FORM_NAME
LANGUAGE = SY-LANGU
OPTIONS = W_ITCPO
EXCEPTIONS
CANCELED = 1
DEVICE = 2
FORM = 3
OPTIONS = 4
UNCLOSED = 5
OTHERS = 6.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.