Skip to Content
0
Former Member
Apr 15, 2009 at 08:05 PM

Not to display windows Print POP-up window

3605 Views

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