Skip to Content
author's profile photo Former Member
Former Member

Supress dialog window in Smartform

Hi, I'm new in Smartforms. I want to supress the dialog window which asks you for printer and the visualization buttom when calling the smarform function. I've tried in CONTROL_PARAMETERS in the Field NO_DIALOG

and a printer in OUTPUT_OPTIONS in th field TDDEST, but I continue seeing that window. Somebody have an idea??

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 03:46 AM

    hi,

    try with this

    gs_control-no_dialog = 'X'.

    gs_control-preview = 'X'.

    gs_control-no_open = 'X'.

    gs_control-no_close = 'X'.

    call function 'SSF_OPEN'

    exporting

    control_parameters = gs_control

    exceptions

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    others = 5.

    if not sy-subrc is initial.

    exit.

    endif.

    then call smartform function module after that

    call function 'SSF_CLOSE'.

    cheers,

    sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 01:10 AM

    Hi!

    Try the following - uncheck USER_SETTINGS parameter when calling smartform FM while leaving CONTROL_PARAMETERS-NO_DIALOG and OUTPUT_OPTIONS-TDDEST filled accordingly.

    If you want to see preview fill CONTROL_PARAMETERS-PREVIEW. Remember - without checking CONTROL_PARAMETERS-TDIMMED you just create new spool request.

    Regards,

    Maxim.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 01:10 AM

    Hi~ Rafael

    let's try like this.

    DATA: gs_control_parameters TYPE ssfctrlop.

    gs_control_parameters-no_dialog = 'X'.

    <b>gs_control_parameters-preview = ' '.</b>

    I wish I could help you.

    Regards

    Kyung Woo.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 13, 2005 at 03:03 PM

    Thanks to all....

    The parameters were:

    Control_parameters-NO_DIALOG = 'X'

    Control_parameters-PREVIEW = 'X'.

    OUTPUT_OPTIONS-TDDEST = 'LOCAL_PRINTER'.

    Add a comment
    10|10000 characters needed characters exceeded

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.