Skip to Content

Print preview and printing SAP script form

Hi experts,

My requirement is printing the SAP script form immediately after previewing it. Meaning after previewing the form when i click the

print button i don't want to go to SP01 and then execute the print transaction.

Please advise.

Kind regards,

Anand S

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Feb 15, 2011 at 03:19 PM

    Hi,

    Usually there should be a 'Print Immediately' flag in the print dialog pop-up.

    For Sapscripts, when an application program calls the function module OPEN_FORM, it can transfer a structure ITCPO to the

    parameter OPTIONS. Via ITCPO-TDIMMED, you can select the option 'Print immmediately'.

    Regards,

    Aidan

    Add a comment
    10|10000 characters needed characters exceeded

    • Dear Aidan,

      Thank you for your information. Your case will work when trying to print the form. My case is when i preview the form first and then click on the PRINT button in the preview window, is it possible to print immediately without executing the print from SP01?

      Kind regards,

      Anand S

  • Posted on Feb 15, 2011 at 03:39 PM

    Hi Anand S,

    I guess when you preview, somehere in your application, the function OPEN_FORM is called. If during the call, the parameter ITCPO-TDIMMED = 'X' is paased, I think then when you click on the print button from the preview screen, the spool will be printed immediately. You can check in the debugger what is the value of the parameter.

    Regards,

    Aidan

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 20, 2011 at 11:32 AM

    thanks Aidan

    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.