Skip to Content
avatar image
Former Member

Selecting Printer defined in VV22 Transaction for Smartform printout

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 29, 2009 at 03:31 PM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 30, 2009 at 04:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 07, 2009 at 05:44 AM

    Hi ,

    Thanks lot , it helped.

    Regards

    Ravi

    Add comment
    10|10000 characters needed characters exceeded