cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting Printer defined in VV22 Transaction for Smartform printout

Former Member
0 Kudos

Hi All,

Can any one help me. My requirement is to print a picking list output using smartform automatically when ever a transfer order is generated.

The main problem is i have to select the printer which is defined in VV22 Transaction for that particular output type but when the smartform is called it is taking the printer defined in SU3 transaction.

I have developed the smartform and now done the setting for automatic printing also by passing NO_DIALOG = 'X' when the function module is called but unable to set the printer defined in VV22 Transaction.

Please let me know if you know the solution.

Regards

Ravi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

Thanks lot , it helped.

Regards

Ravi

Former Member
0 Kudos

I think u can directly pass the printer name in ur driver program.

eg:

data: l_t_out TYPE ssfcompop.

l_t_out-tddest = 'LOCL'.

CALL FUNCTION l_f_fname -


> Smartform Function Module Name

EXPORTING

archive_index = toa_dara

  • ARCHIVE_INDEX_TAB = TSFDARA

archive_parameters = arc_params

control_parameters = l_t_control

output_options = l_t_out

user_settings = space

p_langu = p_langu

TABLES

g_t_item = g_t_final

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

Rgds,

Pavan

Pawan_Kesari
Active Contributor
0 Kudos

You need to define printer in OPK8 transaction for 'Pick list'