cancel
Showing results for 
Search instead for 
Did you mean: 

Auto select printer

Former Member
0 Kudos
75

Hi experts,

When i call the OPEN_FORM function from an abap program it apperas a popup to ask me for the printer i want to use.

Is there any way to set it directly by abap code to avoid viewing this popup and always use the same printer inserted by hard-code?

I cannot find the way but i'm sure this is possible.

Thanks!!

Accepted Solutions (1)

Accepted Solutions (1)

Pawan_Kesari
Active Contributor
0 Kudos

Pass space to parameter DIALOG

*" VALUE(DIALOG) TYPE C DEFAULT 'X'

You can specify all the parameters including printer in OPTIONS parameter of FM

*" VALUE(OPTIONS) LIKE ITCPO STRUCTURE ITCPO OPTIONAL

Former Member
0 Kudos

Ok thanks!

Answers (1)

Answers (1)

Former Member
0 Kudos

you can pass the printer name directly by declaring a structure l_wa_output_options TYPE ssfcompop

now you can pass the printer name as l_wa_output_options-tddest = nast-ldest.

you can suppress the dialog box by defining a structure l_wa_control_parameters TYPE ssfctrlop

and passing the value

l_wa_control_parameters-no_dialog = 'X'. "No dialog