Skip to Content
avatar image
Former Member

Smartforms

Hi,

How to bypaas the Print device option in the Smartforms..

Plz reply soon..

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 11, 2007 at 08:10 AM

    Hi,

    DATA: cparam type SSFCTRLOP,

    outop-tddest = 'LOCL'.

    Give this outop in function module.

    CALL FUNCTION W_FMNAME

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    CONTROL_PARAMETERS = CPARAM

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    OUTPUT_OPTIONS = OUTOP

    USER_SETTINGS = SPACE

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    TABLES

    ITABFINAL = IT_FINAL

    ITABCOND = IT_MAIN

    • EXCEPTIONS

    • FORMATTING_ERROR = 1

    • INTERNAL_ERROR = 2

    • SEND_ERROR = 3

    • USER_CANCELED = 4

    • OTHERS = 5

    .

    Assign points if useful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      'LOCL' is the printer name, it does not necessarily exist in your system and if it does you may not want to print to that printer. If you do need to hardcode the printer name (although I would discourage this) chose a printer name from your system.

      Regards,

      Nick

  • avatar image
    Former Member
    Oct 11, 2007 at 08:11 AM

    hi frds...

    use Function module(SE37) program W_FMNAME..

    pari...

    Message was edited by:

    pari vedhan rajasekaran

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 11, 2007 at 08:19 AM

    Hi,

    use this

    DATA: wa_control_param TYPE ssfctrlop,

    wa_composer_param TYPE ssfcompop.

    wa_control_param-device = 'PRINTER'.

    wa_control_param-no_dialog = c_x.

    wa_composer_param-tdnewid = c_x.

    wa_composer_param-tdcovtitle = v_title.

    wa_composer_param-tdimmed = c_x.

    wa_composer_param-tdnoprev = c_x.

    wa_composer_param-tdnoprint = c_x.

    wa_composer_param-tdiexit = c_x.

    wa_composer_param-tddelete = c_x.

    wa_composer_param-tddest = 'LOCL'.

    then pass these to form FM

    Regards

    Shiva

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 11, 2007 at 08:20 AM

    Set CONTROL_PARAMETERS-device to 'PRINTER' and CONTROL_PARAMETERS-NODIALOG to 'X' when calling the smartform function module. Fill the OUTPUT_OPTIONS with the required printer and spool settings.

    Regards,

    Nick

    Add comment
    10|10000 characters needed characters exceeded