on 2008 Aug 26 8:46 AM
hi evrybody
How to avoid the print popup for smartform?
I want to print directly without preview and popup
I dnt know wats the error in my code
see my code:
Get the function module name of the smartform.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = '/EU000/FI_PRINT_DEBIT_NOTE'
IMPORTING
fm_name = g_fm_name.
gw_options-tdnoprev = ' '.
gw_options-tddest = ' '.
gw_options-tdprinter = 'LOCL'.
gw_options-tdnewid = 'X'.
gw_options-tdimmed = 'X'.
gw_control-preview = ' '.
gw_control-no_dialog = 'X'.
For all the documents
LOOP AT gi_all_data INTO gw_all_data.
write: text-006, text-007, text-008.
Call the smarform
CALL FUNCTION g_fm_name
EXPORTING
gw_all_data = gw_all_data
user_settings = ' '
output_options = gw_options
control_parameters = gw_control.
ENDLOOP.
Hi,
Please check your printer settings in SYSTEM ---> USER PROFILE -
> OWN DATA ---> DEFAULT tab.
Here maintain the printer as LOCL. No popup will appear for print preview.
regards,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
set the option
gw_options-tdnoprev = 'X'.
and check it..
regards
padma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gw_control-device = 'PRINTER'
set this parameter too
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.