cancel
Showing results for 
Search instead for 
Did you mean: 

how to bypass the output device in smartform

Former Member
0 Kudos

hi all,

i want directly the smartform on execution .i don't want to assign any printer or anything.

how to do that.?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Welcome to SDN.

You need to fill two structures and pass them when you call the form.


DATA: DEVICE TYPE SSFCTRLOP .
DEVICE-DEVICE = 'PRINTER'.
DEVICE-NO_DIALOG = 'X'.

Will supress the dialog. Pass this to CONTROL_PARAMS

You then need to fill structure


data: params type SSFCOMPOP.

with the printer settings you want to use. Pass this to OUTPUT_OPTIONS.

Regards,

Nick

Answers (2)

Answers (2)

krishnendu_laha
Active Contributor
0 Kudos

Hi Javed,

There is no way to see without assigning printer.

But it is possible to bypass output dialog..the way is:

In function module of that smart form, pass NO_DIALOG = 'X' of CONTROL_PARAMETERS.

and pass printer name to TDDEST = 'Printer' of OUTPUT_OPTIONS.

It will execute the print or print preview directly without showing pop-up dialog box for printer.

Hope it will solve ur problem.

Regards

Krishnendu

sreeramkumar_madisetty
Active Contributor
0 Kudos

Hi Javed

Welcome to SDN.

Go to the FM: Get_print_parameters.

There u can find the output device option. supress that there.

Regards,

Sree