Skip to Content

SMARTFORMS

Hi all ,

while executing smartforms, i dont want the pop-window, (which consists print/ printview) . instead i want the Output screen.

CAN ANYBODY TELL ME HOWS ITS POSSIBLE ?

thanks in advance .

regards saurabh .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2008 at 06:00 AM

    Take one global FLAG in GLOBAL Data...

    Like:

    FLAG TYPE C [/code]

    This FLAG must be initial always...

    Now, go to your window.. open the conditions.. and put the condition like:

    codeFLAG = 'X'.

    FLAG's value will never be set to "X" so, your window will not be called by SMARTform.

    or

    Smartform avoid print window

    smartform-avoid-print-window

    Reward points if useful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Saurabh Srivastava

      just modify ur code like dis

      DATA : ITAB TYPE TABLE OF ZEMP WITH HEADER LINE .

      data : wa_print type SSFCTRLOP ,

      wa_output_options TYPE ssfcompop.

      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

      EXPORTING

      FORMNAME = 'ZSMART1'

      VARIANT = ' '

      DIRECT_CALL = ' '

      IMPORTING

      FM_NAME =

      EXCEPTIONS

      NO_FORM = 1

      NO_FUNCTION_MODULE = 2

      OTHERS = 3

      .

      IF SY-SUBRC 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      wa_output_options-tdimmed = 'X'.

      WA_PRINT-DEVICE = 'PRINTER'. "Pass this value

      WA_PRINT-NO_DIALOG = 'X'. "Pass X for preview else blank

      SELECT * FROM ZEMP INTO TABLE ITAB .

      LOOP AT ITAB .

      CALL FUNCTION '/1BCDWB/SF00000074'

      EXPORTING

      ARCHIVE_INDEX =

      ARCHIVE_INDEX_TAB =

      ARCHIVE_PARAMETERS =

      CONTROL_PARAMETERS = wa_print

      MAIL_APPL_OBJ =

      MAIL_RECIPIENT =

      MAIL_SENDER =

      OUTPUT_OPTIONS = wa_output_options

      USER_SETTINGS = 'X'

      IMPORTING

      DOCUMENT_OUTPUT_INFO =

      JOB_OUTPUT_INFO =

      JOB_OUTPUT_OPTIONS =

      TABLES

      ITAB = ITAB

      EXCEPTIONS

      FORMATTING_ERROR = 1

      INTERNAL_ERROR = 2

      SEND_ERROR = 3

      USER_CANCELED = 4

      OTHERS = 5

      .

      IF SY-SUBRC 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ENDIF.

      ENDLOOP .

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2008 at 07:09 AM

    hi soura

    this is so-simple.

    i have a same requirement which i did.

    hope dis vil be very useful.

    these are the things which are all neccessary

    wa_l_control_parms-no_dialog = 'X'.

    wa_l_control_parms-device = 'PRINTER'.

    wa_l_control_parms-preview = 'X'.

    wa_l_control_parms-langu = nast-spras.

    wa_ls_composer_param-tddest = 'LOCL'.

    wa_ls_composer_param-tdarmod = 1.

    in the call function module jus pass this

    CALL FUNCTION fm_name

    EXPORTING

    • ARCHIVE_INDEX =

    CONTROL_PARAMETERS = wa_l_control_parms

    • MAIL_APPL_OBJ =

    OUTPUT_OPTIONS = wa_ls_composer_PARAM

    USER_SETTINGS = ''

    mara = mara

    wa_qty = wa_qty

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    TABLES

    itab = itab

    EXCEPTIONS

    FORMATTING_ERROR = 1

    INTERNAL_ERROR = 2

    SEND_ERROR = 3

    USER_CANCELED = 4

    OTHERS = 5

    hope dis vil be useful to uuuuuuuuuuu.

    Reward if its useful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 19, 2008 at 08:05 AM

    hi soura

    this is so-simple.

    i have a same requirement which i did.

    hope dis vil be very useful.

    these are the things which are all neccessary

    wa_l_control_parms-no_dialog = 'X'.

    wa_l_control_parms-device = 'PRINTER'.

    wa_l_control_parms-preview = 'X'.

    wa_l_control_parms-langu = nast-spras.

    wa_ls_composer_param-tddest = 'LOCL'.

    wa_ls_composer_param-tdarmod = 1.

    in the call function module jus pass this

    CALL FUNCTION fm_name

    EXPORTING

    • ARCHIVE_INDEX =

    CONTROL_PARAMETERS = wa_l_control_parms

    • MAIL_APPL_OBJ =

    OUTPUT_OPTIONS = wa_ls_composer_PARAM

    USER_SETTINGS = ''

    mara = mara

    wa_qty = wa_qty

    • IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    • JOB_OUTPUT_INFO =

    • JOB_OUTPUT_OPTIONS =

    TABLES

    itab = itab

    EXCEPTIONS

    FORMATTING_ERROR = 1

    INTERNAL_ERROR = 2

    SEND_ERROR = 3

    USER_CANCELED = 4

    OTHERS = 5

    hope dis vil be useful to uuuuuuuuuuu.

    Reward if its useful.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      sorry yaar,

      i forgt 2 send dis code declaration.

      DATA : wa_l_control_parms TYPE ssfctrlop,

      wa_ls_composer_param TYPE ssfcompop.

      wa_l_control_parms-no_dialog = 'X'.

      wa_l_control_parms-device = 'PRINTER'.

      wa_l_control_parms-preview = 'X'.

      wa_l_control_parms-langu = nast-spras.

      wa_ls_composer_param-tddest = 'LOCL'.

      wa_ls_composer_param-tdarmod = 1.

      CALL FUNCTION fm_name

      EXPORTING

      • ARCHIVE_INDEX =

      • ARCHIVE_INDEX_TAB =

      • ARCHIVE_PARAMETERS =

      CONTROL_PARAMETERS = wa_l_control_parms

      • MAIL_APPL_OBJ =

      • MAIL_RECIPIENT =

      • MAIL_SENDER =

      OUTPUT_OPTIONS = wa_ls_composer_PARAM

      USER_SETTINGS = ''

      mara = mara

      wa_qty = wa_qty

      • IMPORTING

      • DOCUMENT_OUTPUT_INFO =

      • JOB_OUTPUT_INFO =

      • JOB_OUTPUT_OPTIONS =

      TABLES

      it_mard = it_mard

      EXCEPTIONS

      FORMATTING_ERROR = 1

      INTERNAL_ERROR = 2

      SEND_ERROR = 3

      USER_CANCELED = 4

      OTHERS = 5

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.