on 01-28-2010 11:31 AM
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!!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.