cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript

Former Member
0 Kudos

hai to all,

how to bypass printer settings when we execute print program.i want the output of my form without giving output device name in printer settings.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Ramesh,

Yes, You can do this by giving values to the IMPORT parameter of function module OPEN_FORM.

Give values to the OPTIONS parameter which is of kind ITCPO structure and set the values as follows.

ITCPO-TDNOPRINT = ' '. -> No printing from print preview

ITCPO-TDNOPREV = ' '. ->No print preview

ITCPO-TDPREVIEW = ' '. ->Print preview

These values supresses print settings.

Give this structure value to the IMPORT parameter (OPTIONS) of OPEN_FORM.

Thanks,

Vinay

Former Member
0 Kudos

by using one function module get_print_parameter and passing the print parameters in the function module and running it in background you can attain this.

reward it with points.

Former Member
0 Kudos

check options

TDNOPREV TDNOPREV CHAR 1 0 No print preview

and if u want to hard code printer name then make use of ITCPO of open_form.

Regards

prabhu

Former Member
0 Kudos

Thanks Prabhu,

But what is TDNOPREV TDNOPREV. Sorry I dont have any idea about the two terms. Can you please explain it?.

Thanks in Advance.