Skip to Content
avatar image
Former Member

Getting a Spool Order when PRINT PREVIEW is selected

Hi!

In order to solve another problem I have, I need to find a solution to the following issue:

I need that when the user clicks on "Preview Print" at the print options of a SapScript, the system creates a spool order.

I'm getting a spool order only when the user PRINTs the form, not when the PRINT PREVIEW is selected.

There is a way to make the system to create a spool order, no matter if the user is printing or viewing the form???

Thanks in advance!

Bettina

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 10, 2009 at 03:47 PM

    Hi Bettina,

    To achieve this before calling smartforms function module, declare below data.

    data: gst_control_parameters type ssfctrlop,
            gst_output_options type ssfcompop,
            gt_job_output_info type ssfcrescl,
            gt_output_options type ssfcresop.

    Now before calling the generated smartforms function module pass below parameters

    gst_control_parameters-no_dialog = 'X'.

    gst_control_parameters-getotf = 'X'.

    gst_control_parameters-preview = 'X'.

    Finally pass the parameter as below

    control_parameters = gst_control_parameters

    output_options = gst_output_options

    job_output_info = gt_job_output_info

    job_output_options = gt_output_options

    Regards

    Abhii

    Edited by: Abhii on Dec 10, 2009 4:48 PM

    Add comment
    10|10000 characters needed characters exceeded