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

Problem when giving print to smartform

Hi,

I had assigned smartform in driver program.when i execute program, after assigning o/p device(LP01), when i click on print, it is asking to select spool request check box, then it is printing layout. But i dont want to select it in foreground. After this if i want to cancel print, it is asking again output device.

Provide any solution....................

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 05:38 AM

    Hi friend,

    You can set your output device type at the driver program itself. So it will not ask for an output type also you can hide the dialog box popup which shows the options for print and print previw, by setting few printer settings in program.

    Here is a sample code to get a default device type and set it.

    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'

    EXPORTING

    i_language = v_language

    i_application = 'SAPDEFAULT'

    IMPORTING

    e_devtype = v_e_devtype

    .

    x_output_options-tdprinter = v_e_devtype.

    x_control_parameters-no_dialog = 'X'.

    Here no_dialog = 'X' so the pop up window will not be displayed.

    Also possible check whether the printer settings are fine.

    I think this will solve your issue. Please revert back to me if you face any issue. I will help you.

    Thanks,

    Sri Hari

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 08, 2012 at 05:33 AM

    why Dont you try ZLOCAL if it is not there tell Basis Team to create

    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.