cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script Print Preview?

Former Member
0 Kudos

Hi All,

when i select the output type and click on Print preview it is asking for printer parameters. i need to supress the Print parameters pop up so that when we click on print preview it should directly display the document preview. Please let me know how to supress this pop up. directly it has to show the print preview without asking the printer options.

Regards,

kumar

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks All

Former Member
0 Kudos

hi,

in the FM open_form

set the control parameters

data : cparam TYPE ssfctrlop. " Control Parameters

WA_ITCPO-TDDEST = NAST-LDEST. " printer name

WA_ITCPO-no_dialog = 'X'.

WA_ITCPO--preview = 'X'.

pass these control parameters to open_form FM parameters

CALL FUNCTION 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMS =

DEVICE = 'PRINTER'

DIALOG = 'X'

FORM = F_FORMNAME

LANGUAGE = SY-LANGU

OPTIONS = WA_ITCPO

Let me know if u hae any concerns...

Regards,

Lokesh

Former Member
0 Kudos

Hi Kumar,

In this case you need to pass DIALOG = ' ' in the OPEN_FORM function Module of the driver program. Otherwise it is not possible from the transaction level to suppress the dialog.

Otherwise.

Replace the Function Module 'OPEN_FORM' with the INCLUDE rvadopfo which will take care of suppressing the dialog.

Regards,

Srinivas

Former Member
0 Kudos

Hi,

You can get some idea in the following thread, because same topic is being discussed in these two thread,

[;

[;

and you can close this tread even, and try watching that thread...

Regards!

Sheik