cancel
Showing results for 
Search instead for 
Did you mean: 

default printer setup

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member1259992
Participant
0 Kudos

Hello.

I had this problem recently and it was caused because the form I was printing was defined with a page size not recognised by the target printer.

You can check the valid page sizes for devices under transaction SPAD.

Hope that helps

Robin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think error is in the layout.

Please check the layout.

Former Member
0 Kudos

The funny thing is if i turn on the preview paramter, it will display the preview but there is no print out.

If i uncomment the preview, there will be "sent error" message.

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'.