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

How to avoid printer name prompt while calling Smartform

Hi All,

I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:

wa_outputoptions-tddest = 'LP01'. "Printer name

wa_outputoptions-tdnewid = 'X'. "New request

wa_controlpara-device = 'PRINTER'. "Device

wa_controlpara-no_dialog = 'X'. "No dialog

Even after these settings I am getting prompt which asks printer name and other details.

Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.

Thanks in Advance.

Regards,

Vijay

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 10:06 AM

    try to give default printer name in your user settings...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 12:08 PM

    hi ,

    in function module u have one parameter i.e user_setting by defalut it is selected to x .so uncomment it to space i.e

    user_setting = ' ' .

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 01:02 PM

    Hi Vijay,

    Try like this.

    CALL FUNCTION fm_name

    EXPORTING

    • ARCHIVE_INDEX =

    • ARCHIVE_INDEX_TAB =

    • ARCHIVE_PARAMETERS =

    <b> control_parameters = wa_controlpara</b>

    • MAIL_APPL_OBJ =

    • MAIL_RECIPIENT =

    • MAIL_SENDER =

    <b>output_options = wa_outputoptions

    user_settings = space</b>

    IMPORTING

    • DOCUMENT_OUTPUT_INFO =

    job_output_info = tab_otf_data

    • JOB_OUTPUT_OPTIONS =

    TABLES

    it_tab = itab[]

    EXCEPTIONS

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    OTHERS = 5

    .

    Regards,

    SP.

    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.