How to print set of documents without showing print dialog box

I have created a smartform tht prints a Payment Advice. Its input includes range of Document numbers.
I call the smartform function in loop for all those document numbers. Now my problem is tht everytime tht function is executed the print dialog opens up askin for Printer name and then on pressin 'print', one document is printed and so user has to press print tht many times. To avoid this i added code:
DATA: it_ssfcompop TYPE ssfcompop.
DATA : gst_control_parameters TYPE ssfctrlop.
DATA : gt_job_output_info TYPE ssfcrescl.
    it_ssfcompop-tddest = 'LOCL'.
     IT_SSFCOMPOP-TDNOPREV = 'X'.
     it_ssfcompop-tdnewid = sy-prnew.
     it_ssfcompop-tddelete = sy-prrel.
     it_ssfcompop-tdimmed = 'X'.
     it_ssfcompop-tdnoprint = 'X'.
     CLEAR gst_control_parameters.
     gst_control_parameters-no_dialog = 'X'.
     gst_control_parameters-preview = 'X'. "Deactivate preview!
     gst_control_parameters-GETOTF = 'X'.
and called smartform function like this:
  CALL FUNCTION FM_NAME
       EXPORTING
        BUKRS                      = BUKRS-LOW
        BELNR                      = BELNR
        GJAHR                      = GJAHR-LOW
        CONTROL_PARAMETERS         = gst_control_parameters
        OUTPUT_OPTIONS             = it_ssfcompop
     IMPORTING
        JOB_OUTPUT_INFO            = gt_job_output_info.
this shows print preview but still does not print. What could be error. Please help.

Try this
* Work Area declarations
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
* Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZONE'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Similar Messages

  • HT3669 Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this opt

    Since I starting using my MacMini (2011 version) I have not been able to print double sided from my HP Photosmart plus - there is no option for this in the Printer dialog box as there was in the similar dialog box on my PC. How do I set up this option?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • Hi, I want to use my Capsule just as a back up via wireless. How do I set this up without connecting it with an ethernet cable to either a router or the iMac??

    Hi, I want to use my Capsule just as a back up via wireless. How do I set this up without connecting it with an ethernet cable to either a router or the iMac??

    I misunderstood what Time Capsule is and had hoped for a wireless backup device that didn't have to be connected to the router.
    The TC is a wireless backup device.. it does not need to be connected to the main router..
    The problem is the computer.. not the TC.. the computer has only one wireless card.. if your current internet is by wireless.. then you must choose.. internet or backup.
    But my other suggestion will work.. get a wireless USB stick compatible with Mac OS.. there are plenty and cheap.. since you are in the same room as the TC they will work fine.. plug it in and load the driver.. taint hard.
    You should do the first backup by ethernet though.. wireless is too slow.. once you have that, you will do fine.
    Search ebay for wireless n usb.. Mac compatible..
    http://www.ebay.com/itm/New-EDUP-Mini-Wireless-11N-300M-USB-LAN-Card-WiFi-Adapte r-Nano-Card-Soft-AP-/150864362939?pt=US_USB_Wi_Fi_Adapters_Dongles&hash=item2320 377dbb#ht_3553wt_1165
    As you can see.. they are getting smaller and neater.
    I have no idea if it works .. haven't tried one.. but I have used USB wireless stick on the Mac to overcome this issue.
    You will need to set static IP .. not hard but you need to set specifics if you do buy one post again for the setup.

  • I set up my new apple Id but when I go to iTunes it won't let me continue without a credit card on file how do I set it up without a credit card

    I set up my new apple Id but when I go to iTunes it won't let me continue without a credit card on file how do I set it up without a credit card

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

  • How do I set a Document Open Password on my iMac.

    How do I set a Document Open Password on my iMac?  I need one to open a PDF document in an e-mail from Apple.

    I was confused about what password they wanted.  Turns out that it was sent in a separate e-mail from Apple.  Thanks Linc.

  • How can I get print dialog box to show accurately?

    My print dialog box shows the image too large. If I go to print it prints correctly. I have tried updating drivers and reinstalling Illustrator. It has been happening since new update to CC.

    When viewing the print settings, in the Summary List, it shows the Paper width as 9 inches rather than 8.5.
    The Navigator window shows (in my test file) 4 plus signs across the top of an 8.5 by 11 inch page.
    The Print Preview in the Print Dialog shows  only 3.  My printer is set to standard 8.5 by 11 page size.
    Everything prints perfectly in CS6 when I bring the file in.

  • How to set print dialog box to sync with applications

    Dear all
    I am using different applications, such as photoshop, lightroom, etc. All these applications have their propper print dialog box with enhanced settings.
    BUT
    after hitting the print button, my computer takes me always to the mac print dialog box, where again I can set different things: I can set paper quality, paper format, the colors...
    to me it seems that the settings I have chosen in the application print dialog box are getting erased by this second set of (OS X) print-settings.
    WHY DO I NEED TO GO THROUGH TWO PRINT DIALOG BOXES?
    Can I omit the OS X print dialog?
    Or am I missing something?
    many thanks for your help,
    Hynek

    Thank you for this reply.
    I will work around it with presets.
    but just to understand this: *which dialog box is the one setting the printer* (when for example using photoshop)? is it the first dialog box, i.e. photoshop print dialog box - or is it the osX print dialog box?
    if it is the second, I can skip the photoshop-one... ?
    or do I need to experiment with a combination of both?
    greetings,
    Hynek
    p.s. I know, it is a rather late reply. But we became parents 7 months ago, and time at the moment just flies by...

  • Printing from FLASH without "Print dialog Box" Pop-up window?

    hi guys,
    i got a flash + OSX question, maybe someone can help me,
    i'm working on a Adobe Flash (Flash version 9, actionScript
    3) project, running on a MacOS X 10.4, on a core2duo iMac, it is
    connected to a printer (Xerox Phaser 6360).
    - the flash will be displayed in full screen.
    - it is a "create your own postcard- &- print it out"
    flash-based multimedia project.
    - so Flash will need to print stuff.
    issue is:
    - everytime when something need to be printed, macOS X will
    prompt a "Print Box" pop-up window say Cancel or Print (see my jpeg
    below).
    - so it might overlap on top of my Flash project, which is
    running full screen (so having the pop-up window overlapping my
    flash is no good).
    so i need a solution to avoid this, any idea?
    what i can think of are:
    A- is there a way to avoid/by-pass this step? meaning a way
    not to show this?
    or
    B- or is there a shareware/way to "auto-click RETURN button"
    so even this screen appear it will be "auto-click" away.
    or ..C?
    i knew there is a Plug-in (or Xtra) for Macromedia Director
    called: Print-o-matic,
    the URL is:
    http://www.printomatic.com/products.cfm/
    it work well on the Director on Mac OS7, but they only made
    it for Director & Authorware, not Flash :-( do you know
    something similar for Flash?
    this
    is the pop-up Print dialog box i meant (which i want to avoid),
    click to view
    or u can copy the URL to view there:
    http://photos-g.ak.facebook.com/photos-ak-sf2p/v193/184/11/743997016/n743997016_546542_881 6.jpg
    about the printer URL:
    [url=http://www.office.xerox.com/printers/color-printers/phaser-6360/enus.html]High
    speed color for high volume printing - Phaser 6360[/url]
    hope i'm able to get a solution here.
    thanks guys,
    cheers,
    tintoy

    quote:
    Originally posted by:
    actiontintoy
    so does anyone got any solution for this issue?
    which is:
    able to print without showing the "print dialog box" pop-up
    window,
    pr any other way to by-pass the pop-up window,
    thanks.
    BTW, i'm adobe Flash + mac OS X 10.4
    Hi...did you solve the problem?
    Would you mind telling me how to disable print dialog?
    Thanks!!!

  • How to print Check Box in smartform

    HI,
      How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
    Thanks
    Raghavendra

    hi,
    u can print a check box in different ways.. by inserting symbols and making window as check box..
    once go through the thread u will get to k now differnt ways
    putting checkboxes in smartform?
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How to suppress print dialog box from popping up under a condition

    Greetings...
    There may be a better way to accomplish what I'm trying to do, so I'm open to outside-the-box suggestions.
    I have a pretty simple page which lists a set of statuses and descriptions of each. The user can edit these status flags and their descriptions on the page as well. When I view the page in "printer friendly" mode, I see a nice simple report of what the statuses are and their descriptions. Everything works great so far.
    In our work request system built in ApEx, there's a page where someone can view the details of a work request, including the current status. When someone clicks on the help of that item, what I'd love to do is simple show the "printer friendly" version the status page mentioned above in a pop up window. My problem is that the print dialog box automatically shows up when a page is displayed in "printer friendly" mode and I do not want this to happen in this case.
    I see the javascript code in the Printer Friendly page template which causes the print dialog box to show up automatically, but I don't want to remove it in the template just for this one case. This would suppress the print dialog box on all "printer friendly" page views and the users are used to it showing up when they ask to print the page.
    I guess I could create a custom request to pass to the master status page which would pretty much do everything that the "printer friendly" mode is doing, but that seems like a lot of work when I'm so close to using something that is built in.
    Am I not seeing some simple other way of doing it or perhaps asking too much? Any suggestions?
    Shane.

    Hi,
    I think you have to call the FM GET_PRINT_PARAMETERS and pass NO_DIALOG = 'X'.
    Something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    add: Spool numbers can be found in TSP01 or in system field SY-SPONO available in the submitting program...
    Hope it helps,
    Kr,
    m.
    Edited by: Manu D'Haeyer on Sep 28, 2011 10:02 AM

  • SUBMIT command;  for print dialog box-how to pass parameter here?

    Hi Gurus,
    I am calling a report from another report. Inside report_2 i am using,
    When i execute report2, i get a PRINT DIALOG BOX
    Here i need to enter the output device name. and again excute.
    I am not able to automate this in my program. Could you suggest?
    Through F1 help, i found the screen_field name(of the output device parameter) to be 'SFPOUTPAR-DEST'
    and i enter default output device 'PDEST'
    where do i give this?
    and also, after this, i need to do a 'Print Preview' action and see if file is opening up.
    Can i automate these actions?
    I am using:
    rspar_line-selname = 'SFPOUTPAR-DEST'. // the output device parameter name
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-low = 'PDEST'. // PDEST is the default value i want to pass
    APPEND rspar_line TO rspar_tab.
    Then i do, (inside report 2....)
    SUBMIT report_1
    WITH SELECTION-TABLE rspar_tab
    AND RETURN.
    Its not working... i just get the print dialog box(without values being defaulted)
    How do i proceed?
    Thanks,
    Rashmi

    Hi
    You can do the following way.
      data :  lv_pri_params     like pri_params,
              lv_user_name      type char16,
              lv_user_name0     like tbtcjob-authcknam.
      lv_user_name  = sy-uname.
      lv_user_name0 = sy-uname.
      call function 'LOAD_PRINT_PARAMETERS'
           exporting
                key            = lv_user_name
           importing
                out_parameters = lv_pri_params
           exceptions
                error_occured  = 1
                others         = 2.
      if sy-subrc <> 0 or lv_pri_params-pdest is initial.
        select single padest into lv_pri_params-pdest from tsp03.
      endif.
      submit report1
        with selection-table rspar_tab
                 destination             lv_pri_params-pdest
                 copies                  lv_pri_params-prcop
                 list name               lv_pri_params-plist
                 immediately             space
                 keep in spool           'X'
                 new list identification 'X'
                 line-count              lv_pri_params-linct
                 line-size               lv_pri_params-linsz
                 sap cover page          lv_pri_params-prsap
                 cover page              lv_pri_params-prbig
                 without spool dynpro
                 user lv_user_name
                 and return.
    Reward Points, if it is useful.
    With Regards
    Raja.
    Edited by: Ravindra Raja on Jun 24, 2008 4:15 PM

  • PSE 10 - Print Dialog box - Preview shows incorrect file

    PSE 10 - Print Dialog box - Preview shows incorrect file.  Preview shows an open, but minimized file, however, it does not show the active, open file that I want to print.  Rather than have to go through the organizer to choose the correct file and delete the incorrect file, how can I make sure that the targeted file I want to print appears in the Print dialog preview window and actually prints?

    Thanks, Barbara.  I've used PSE for years and never knew this.  Such an easy solution.  Thanks for quick response!

  • After the latest two updates, whenever Firefox starts, the print dialog box appears automatically. Why, and how do I stop this?

    Not much else to add. The print dialog box just opens every time Firefox is started or restarted.

    Check the Home page setting:
    *https://support.mozilla.com/kb/How+to+set+the+home+page
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions 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.com/kb/Safe+Mode

  • Print Dialog Box for Addon is not showing in Terminal Server

    Dear All,
    I have created a addon for Automatic Sales Invoice printing that prints the crystal report directly to the printer bu opening a
    print dialog box for printer selection through SDK code.
    The Same addon works fine on the server with print dialog box being showing through SDK code.
    But while running on Terminal Server , print dialog box is not showing any printer though printers are redirected to that
    terminal server.I am not getting whether the problem is in my addon or in the terminal server printer settings.
    Please suggest as i need to know the reason urgently.
    Thanks
    Amit

    Hello Edward,
    Thanks for your reply .
    But the problem is that while running on normal server the print dialog box appear with the printer name in my addon for printer selection .
    But while using terminal server , the print dialog box is not getting any printer in the dialog box .That's the major concern for me
    is their any way to check that why the printers are not showing in print dialog box.
    Thanks ,
    Amit

  • I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    I can no longer print to the 3 Canon printers on my local area network. The print dialog box states that the print file is accepted and the job is printing, but the files never print. Everything worked when the computer and printers were initially set up.

    There may be some security issues related to the USPS PDFs.
    http://www.certified-mail-envelopes.com/signatures-usps-certified-mail-return-receipt-requested
    I can't help with the scan/print problem. You seem to have done everything I would try.
    I don't know if maybe using a registry cleaner would help.
    John Hoffman
    Conway, NH
    1D Mark IV, Rebel T5i, Pixma PRO-100, MX472

Maybe you are looking for

  • Computer won't detect router

    I have a wrt150N  with windows xp and road runner internet.  all the lights work but install cd and easy link setup won't detect the device.  I can use Internet explorer to get onto the net but itunes and avant browser won't work.  I changed my route

  • Problem with navigation

    Hi guys. I have an e71, and I've been having trouble with Ovi Maps. The internal GPS works just fine, it can pick up satellites with Google Maps, but not with Ovi. Whenever I launch it, it says "Waiting for GPS" and eventually it says "Driving direct

  • Database creation using ant/maven/liqubase

    Dear ALL: I am creating the database instance using the ant/maven scripts and following are the things I tried but some how it is not creating the database. I have installed the 64bit oracle 11gR2 on windows 7 and configured the default database (ORC

  • Updating OCLG.Duration in DI Server

    I'm trying to add/update an activity using the DI Server. The XML request is generated properly (no schema errors) and sent to the DI Server. In the XML, I have (among other things): <Recontact>20070802</Recontact> <StartTime>1800</StartTime> <EndDue

  • Macbook Air 2010 EXTREMELY SLOW!!! It's unbearable!

    I've used CleanMyMac, closed everything,restarted, but nothing actually works. The macbook is barely loaded with anything but it cannot even play a simple, 360p youtube video without jagging and being stuck all the time. Please help me I can't do any