Skip to Content
0
Jun 05, 2008 at 09:58 AM

Smartform device configuration

589 Views

I have a report that print a label, when i run the program i want the default parametter in the printer's window are:

- OutputDevice = LOCL

- Print immediately -> checked

- Delete after Output -> checked

In the program i use

data : lv_output_options type ssfcompop ,

lv_control_parameters type ssfctrlop.

lv_control_parameters-no_dialog = 'X'. "No print dialog

lv_control_parameters-preview = space. "No preview

lv_control_parameters-device = 'PRINTER'.

*****************i think those arte the parameter to set but i don't know how.***

lv_output_options-tdprinter = 'LOCL'.

lv_output_options-tddest = 'LOCL'.

*********************************************************************************************

lv_output_options-tdimmed = 'X'.

lv_output_options-tdnewid = 'X'. "Print parameters,

lv_output_options-tddelete = space.

CALL FUNCTION smartform_modul

EXPORTING

  • ARCHIVE_INDEX = ARCHIVE_INDEX

  • ARCHIVE_INDEX_TAB = ARCHIVE_INDEX_TAB

  • ARCHIVE_PARAMETERS = ARCHIVE_PARAMETERS

CONTROL_PARAMETERS = lv_control_parameters

  • MAIL_APPL_OBJ = MAIL_APPL_OBJ

  • MAIL_RECIPIENT = MAIL_RECIPIENT

  • MAIL_SENDER = MAIL_SENDER

OUTPUT_OPTIONS = lv_output_options

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO = DOCUMENT_OUTPUT_INFO

  • JOB_OUTPUT_INFO = JOB_OUTPUT_INFO

  • JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS

TABLES

tab_input_dati = prt_data_tab

  • EXCEPTIONS

  • FORMATTING_ERROR = 1

  • INTERNAL_ERROR = 2

  • SEND_ERROR = 3

  • USER_CANCELED = 4

  • OTHERS = 5

.

Someone can help me?

Thanks

Andrea

Edited by: Andrea Peroni on Jun 5, 2008 11:59 AM