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

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

Similar Messages

  • Text in samrtforms when print preview display as ####

    Dear friends,
    I have got the problem about smartforms, I have created my own smartform with original language ‘TH’ and created the text node with Thai and English including Numeric Character. But when I executed the form to print preview, any texts cannot be read, its display as ###### neither I logon with TH nor EN Language. Please advise.
    Ps. any texts in text node when seeing in smartforms can be read normally, it got the problem when print preview.
    More information of my smartforms:
    1. Language Attributes: Original is TH, Translate to all language, do not tick any checkboxes of Access area.
    2. SAP version is ECC 5.0, Basis and ABAP Support Package is 014 Release 640, Application Support Package is 008 Release 500.
    3. Kernel Release 640 Patch Level 101, Oracle 8.1.7, DBSL version 640, Patch Level 101.
    4. OS Windows 2000 Service Pack 4
    Thank you in advances,
    SeMs

    Hi!
    Which printer do you use?
    Check in the transaction spad which printer and printerdriver you use. Dobbleclick on the printerdriver and check which codepade is assigned.
    I think it has to be one of the following codepages:
    8600     Thai Codepage ISO988/2533
    8604     Microsoft Windows 874 for Thai
    8611     Thai Printer Codepage 1 (EPSON ESC/P2)
    8616     Printer HPLJIIID (Thai)
    8617     Thai Postscript printing
    8634     Thai Printer codepage (THSAPWIN)
    Pleas try this.
    BR
    Silvio Hey

  • How do I get rid of shadowing when printing PDFs documents?

    How do I get rid of shadowing when printing PDFs documents?

    That may have been added by an extension or because you installed some (smiley) software on the computer.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    See also http://funmoods.com/terms

  • When printing a highlighted (selected) print range from an internet item pulled up through Firefox, the first line of the selected range is not printing or is partially cut off.

    When printing a highlighted (selected) print range from an internet item pulled up through Firefox, the first line of the selected range is not printing or is partially cut off. This is not an issue with my printer, as printer prints the whole selected print range when using Internet Explorer or Word Doc applications. The problem only happens when using Firefox. Please advise on how to fix this. Is this a settings issue or do I need to download and update? Thx

    * [[Printing a web page]]
    * [[Firefox prints incorrectly]]
    Check and tell if its working.

  • User gets odd behavior when print previewing calendar

    User calls with an odd problem.
    She is using 32 bit IE 9 with our SP 2010 farm.
    She goes to her department calendar. She sees events.
    She presses Print Preview. No events are shown on the page.
    She tries to export the data to Outlook - it tells her there is too much data.
    She calls me.
    I look - her default view is running into the resource throttling of the farm. So I try to create a unique view that only shows this week's events.
    It works fine for me. Print preview and printing work as well.
    When she looks at it in her browser, it works fine.
    When she tries to print preview - no events show up on the preview page.
    She tries to export from the new view - Outlook gets no events.
    She is using IE9, so the IE7 comments in old threads are not relevant.
    I set the web part configuration to 12 inches as one conversation suggestions. That doesn't help.
    Does anyone else have any ideas of things to try?

    When I look at the custom calendar within SharePoint Designer, the page has a ListView Web Part but not an XsltListViewWebPart.
    I have tried several times to step through blog entries that describe editing the page, setting the view of the web part, etc. At one point whatever I tried turned the calendar view into a list view ... sigh. I created a new calendar view and made it
    the default.
    I have asked the user to try the print preview out today to see if it works for her after I created the new view.
    The really odd thing about all of this is that at least 2 people don't have the problem with not seeing event data in the print preview.
    It _almost_ sounds like some sort of machine specific issue she is having.
    I wonder if I should ask the admins to repair Office 2010 on her machine to make certain the DLLs are all working properly.

  • Automatically prompt to save PDF when Print Preview for Purchase Order?

    We recently upgraded to EP7.
    I have an end user that does our PO's.
    She swears up and down that she used to be able to go into any given PO, be it new or existing, and click on the print preview button. She says when she did this she was prompted to save or open the file.
    She is set to PDF Preview when doing a print preview of the PO.
    When we first upgraded the system, it was broken. When she tried to do this it would give you a Page Cannot Be Displayed error as in unable to find the page. We learned that there was an issue with name resolution within the system. We fixed this and now she can view the files as PDF when doing a print preview.
    But she still claims it did not used to work like this that when she went to preview she would be prompted to save or view which worked great for her because she could click save, save it to her computer, and then email it to whomever she needed to send it to.
    Seems clear to me that that when you do PDF Preview that an SAP browser session is created and sent to an web site (internal to SAP of course) to view the PDF. How can I tell SAP to give me the option to view or save?
    For now the user is repeating the output when she needs to reprint another copy of the PO.
    I should also say that we use Free PDF Creator. After setting her default printer to this, she says that now when she creates a new PO, it is working like before. So its possible that the prompt was the one from PDF Creator.
    The user says she swears she could simply print preview would allow her to save local. I never saw it for myself prior to the upgrade.
    Anyone seen this before or can offer any clues? Is there away to issue output at print preview?

    How did you fix 'page cannot be displayed' error?
    It looks like issue was at browser/pdfreader side.

  • FF windows goes blank white and freezes if I click a link in another application when Print Preview is open in FF (Win 7 64-bit)

    Possible bug: FF dumps my session if I try to open an external link without closing print preview view. I had left the Print Preview screen open in FF after printing a web page, and I clicked a web link in another application, which would have normally opened in a new tab in FF. However, only the Print Preview window was displayed and when I clicked "Close", the FF window when all white. Back/backspace wouldn't work and I had to close FF and start a new session. I tested this a few times and it happens every time. I didn't think to test whether this happens in Safe Mode.

    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • Value pass to Smartform when Print/Preview

    Hi,
    I've a custom print program and smartform. All my selecting data codes are in Smartform. How do I let Smartform knows whether I'm doing a preview or print? What values should I pass into Smartform?
    I'd like to achieve something as follows:-
    IF print preview.
      DO a.
    ELSE.
      DO b.
    ENDIF.
    Please share your thoughts.

    Hi Brad,
    Actually it is not the data selected that determines the print preview. Let me give a clearer scenario.
    When user clicks Print Preview, user able to see a preview of the form. However, when user clicks Print, form is printed and some data is saved to a custom table.
    Currently, both print preview and print will save the data to the custom table. So I'd like to know how to prevent data being saved into the custom table when user performs a print preview.
    Thanks.

  • Getting Error While Going For Print Preview in ALV Report

    Hi,
    We doveloped a new report based on client requirment while going for print preview all the fields are shufling.Can you please guide me I am unable to solve this problem.
    Regards
    Suresh

    Do you use a field for coloring a column or cell?
    If the coding is not too large it could be helpfull to post the coding as well.
    Regards,
    John.

  • Error when print/previewing joutnal report

    I am gettign the following error when trying to view a journal report PLEASE HELP!
    Can't open the log file
    Show Details:
    Error Reference Number: {CAC41EC9-7F12-46FA-A900-EB5E57E802D8}
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMActions.cpp;Line: 72;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: HFMCESAction.cpp;Line: 28;Ver: 11.1.2.1.000.3082;
    Num: 0x800456c2;Type: 0;DTime: 10/6/2011 11:03:14 AM;Svr: POCHFM02;File: Actions.cpp;Line: 385;Ver: 11.1.2.1.000.3082;

    Hi,
    How the issue was fixed, it would be great if you can provide the resolution steps.
    It seems i'm too getting the same issue, when i'm trying to open a HFM report in workspace the report prompts to select a member but when i'm clicking the prompt button then it is throwing the error.Error is as below
    Respond to prompts
    *[1033] Native:- 2147219967 error reference number {FF339D8B-E1CC-4E57-9D4A-C4EF051D76B6}*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: CHsvADMDriverACM2.cpp;Line:2500;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1491;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1245;Ver:11.1.1.3.500.3124*
    HsvALEQueryClasses.cpp;Line:707;Ver:11.1.1.3.500.3124
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:804;Ver:11.1.1.3.500.3124*
    NUM:080040601;Type: 1 ; DTime:5/9/12 5:41:34 AM ; Svr:server name; File: HsvALEQueryClasses.cpp;Line:1203;Ver:11.1.1.3.500.3124*

  • HP 8625, cannot see Print Preview or Select Pages

    On my new HP 8625, I cannot see the Print Preview feature nor can I select to print specific pages.  This used to work on my HP c309, so I'm thinking perhaps it's a printer driver issue.  I am specificially having this issue with Excel but it may be occuring in other programs as well.
    Any suggestions?
    Thanks for any info.

    Hello @TheEveryman , welcome to the forums
    I would first suggest checking to see if you have Print Preview and the option to print specific pages from other programs, besides Excel as this will show us if the problem is solely within MS Excel, or all programs, which could be a driver issue.
    Skipping forward a little bit and assuming the issue is in all programs, you could try Uninstalling the Printer Software, restarting the computer and reinstalling the printer, here: HP Officejet Pro 8625 e-All-in-One Printer Drivers.
    Please let me know which operating system you're running on your computer and the results from testing the other programs on your computer. The more detail you include, the better!
    Have a great day and hope to hear back from you
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Why aren't my contacts in alpha order when printing list?

    For some reason, even thought they are in the proper order in the address book, when i print a list they are in a random order. They are not in order by last or first. curious...anyone know the fix?

    Thanks BoPeep45...
    not only do I love your suggestion but I love the ostrich on your home page..... I also teach a class and this is the quickest way of printing out a sign-in sheet.  I do it with a little more effort but this is extremely quick;  Also as a side note, if you want some of your other address book comments to show up you can preset the columns' name with the "exact" field name and it will plop in that information also, ie address or notes... I didn't check on the picture but I know the other fields do show up. 
    Apple really needs to fix this problem.  I really don't like the extra step of going to icloud.com to print out things alphabetically it's so inconvenient.  Tim Cook may not see it as a problem but I'm sure Steve Jobs would not tolerate "half-a**ed" software on his operating systems...I just read some terse comments he made to his staff when another program was not up to his expectations (Mobile Me) and that is why he PERSONALLY presented iCloud to the public  He expected perfection and when he didn't get it, he let the hammer fall. 
    This has been a problem ever since Mountain Lion came out and they are totally ignoring it.  I, and I'm sure many of you, have reported this "bug" to them to fix over the past year and nothing has been done.  It should be an easy fix.
    Thanks again for your suggestion....
    kattnip333

  • Spool problem when printing list

    Hi Friends,
    In my report program - I am using ALV_GRID_DISPLAY and generating the output in the SPOOL.
    If I check in spool - The first page contains as:
    Data statistics           No. of Records
    Records passed           15
    and in the second page - my actual ALV output is getting printed with 15 records.
    I dont know how the first page is getting generated ?  I dont want to see this first page. Only my second page data as per my report logic should appear in spool.
    For your reference: - I am using like this:
    PERFORM field_catalog.
    NEW-PAGE PRINT ON
                      PARAMETERS wa_params
                      NO DIALOG.
    PERFORM alv_output.
    NEW-PAGE PRINT OFF
    Please let me know.
    Regards,
    Hari

    Hi ,
    Any clue on this?
    What I understand is that When I checked in Settings -> List status
    This is actually printing in the first page in spool. But only, my output should only be printed.
    How can I hide so that only my list output only should be generated in spool ??
    Regards,
    Hari

  • Page Order when printing a book changes while ordering ?!?!

    Hi Guys, (sorry for a bit of a lack of good english)
    yesterday i had the opportunity to try apperture 2.0 at a friends mac and wanted to create a photobook with his apperture as a gift.
    I created a 32 pages medium sized softcover book. 32 pages is the count of numbers at the side of the pages, but there is the cover, that is not counted, as well as the innerside of the cover and the backcover and its inner side that is not counted.
    Ok, there are several pics that stretch out over two pages, so i have one big pic over two connected sites.
    But (and now comes the real problem ;-)) when i ordered and choose the preview to verify the order, it merges the sites in a funny way, that is not my desired one, so that the two sites pics are not connected anymore. now u have to turn pages to see the "second part" of the "two sided" pics .
    How come ? And what can i do to set the order of pages exactly as i want to, and not be merged, nor rather be a page added or what by apperture when ordering.
    Again sorry for my bad english, hope problem became clear
    Fred

    Matt Broughton,
    Thank you for your reply. CocoaBooklet may offer a solution, though it mentions it creates booklets out of PDF files. My first interest remains to create a singular PDF from a Word-file. So far I've used another app called CreateBooklet, which also worked as described as with CocoaBooklet. I have to say that I'm surprised not being able to find an app that will print dedicated sets of A4 (or another format), I can't be the only one trying to do this. Having said that, the most easy way to accomplish the feat might be to break up the document into saved-to-pdf files (4 A4 at a time) and then merge them into 1 file using Os X's Preview? Hope not, I'm open to suggestions...
    thanks again!

  • Changing album order when printing in mosaic

    Is there a way to change the order album artwork appears when using mosaic as a print option? I can't see that the order they're arranged correlates to anything.

    You can't change the order of the photos in the built in photos app. There are other apps that give you much more flexibility than what the photos app allows. You may want to do a search in the App Store for one that suits your needs.
    Read this to learn about the photo sorting order on the iPad. The gist of the article is this .... Copied from the article.
    By default, photos sort according to the date modified (in ascending order).
    http://support.apple.com/kb/HT4221
    An app that you can look at....
    https://itunes.apple.com/us/app/photo-manager-pro/id393858562?mt=8

Maybe you are looking for