cancel
Showing results for 
Search instead for 
Did you mean: 

direct printing of smartform

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

set the option

gw_options-tdnoprev = 'X'.

and check it..

regards

padma

Former Member
0 Kudos

Hi Anjali,

Check this link for direct printing:

Regards,

Chandra Sekhar

Former Member
0 Kudos
Former Member
0 Kudos

gw_control-device = 'PRINTER'

set this parameter too