cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform device configuration

andrea_peroni
Explorer
0 Kudos
830

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

View Entire Topic
Former Member
0 Kudos

Hi Andre,

If the parameter USER_SETTINGS is set ('X'), SAP Smart Forms copies the user defaults for the Spool Control.

If it is not set, SAP Smart Forms instead evaluates the following parameters of the structure for the output options ( SSFCOMOP 😞

Printer settings ( TDDEST , TDPRINTER , RQPOSNAME )

TDIMMED (Print immediately)

TDDELETE (Delete after output)

Try setting this Blank.