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

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?

  • 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

  • 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

  • How to suppress the Print Dialog Box?

    Running an (ASP.NET /Crystal Reports 2008) application and using CrystalReportViewer control. Is there way to suppress the print dialog box when I click the print icon on the report tool bar?
    Edited by: juRamz on Aug 26, 2009 2:54 PM

    Hello,
    Sort of, CR needs the info. Only option is to create your own print button that has all the info filled in. It's a Windows Framework Common dialog box that CR calls so it's the OS that is prompting for the info.
    Using ReportClientDoc here's a possible solution, note that this too has a dialog box to select the printer:
    private void button1_Click(object sender, System.EventArgs e) // Print To Printer button
        System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();               
        PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
        CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
        //CrystalDecisions.CrystalReports.Engine.PrintOptions newOpts = new PrintOptionsClass();
        pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PrinterName = cboCurrentPrinters.Text;
        rasPROpts.PaperSize = (CrPaperSizeEnum)
            pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
        rasPROpts.PaperSource = (CrPaperSourceEnum)
            pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
        // new API added to allow changing printing options
        newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
        newOpts.DissociatePageSizeAndPrinterPaperSize = true;
        rptClientDoc.PrintOutputController.ModifyPageMargins(0, 0, 0, 0);
        rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
        MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • 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...

  • Terminal command to make expanded print dialog box the default

    I saw this somewhere back under Tiger, but I can't remember where.
    I need to know the terminal command to make the expanded print dialog box the default. I'm getting tired of clicking the blue arrow to expand the box.
    If anyone can direct me, I'd sure appreciate the help!
    Karen

    Hi Karen
    I believe the command is this:
    defaults write -g PMPrintingExpandedStateForPrint -bool TRUE
    Thanks to macosxhints.com...
    Matt

  • How to open window print dialog box ?

    Hello experts,
    i want to print the form degin with data in forms' field.
    for this i add a button in my tools bar. i want when to call the windows print dialog box.
    please help
    Thanks
    yash

    You did not mention what Forms version you are using or the platform on which it is running. Although that doesn't really matter much in this case, please include this information in the future.
    To print a screenshot of the currently displayed (running) form, use the PRINT built-in. Refer to the Builder online help for details. Here is the example from the online help:
    /*** Built-in: PRINT **
    Example: Print the current window. */
    BEGIN
    Print;
    END;

  • 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

  • How to upgrade to LR CC from LR5.7...When I click on check for updates, dialog box says I have the latest

    How to upgrade to LR CC from LR5.7...When I click on check for updates, dialog box says I have the latest/
    The creative cloud dialog box that lists the applications, doesn't show LRCC

    Log out of the CC desktop app, then log back in again. You should see it then.

  • How to access Print Dialog boxe's "Pages" property

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

    Hi,
    I am using the following line to populate the Print dialog box.
    xfa.host.print(1, "0", (xfa.host.numPages-1).toString(), 0, 1, 0, 0, 0)
    Is there any way that I can access Pages option using JavaScript with Adobe LiveCycle Designer 8.0 where I can show the page range to print?
    I want to print 3 copies of 1st Page and then the one copy of full PDF. So in the Pages option of Print dialog box I want to display 1,1,1,1-9. Is there any way to accomplish this programmatically?
    Or is there any better way to print 3 copies of 1st page and then 1 copy of whole pdf?
    Thanks.
    Niketa Parekh

  • 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.

  • Printer dialog box does not appear in Photoshop CS.5

    I use Photoshop CS.5.1 with a Macbook 2013 using version 10.9.5. The printer works perfectly with all other applications but in Photoshop no printer dialog box comes up and the print job does not appear in the printers queue. Anyone the same issues?

    First, try nuking (deleting them and letting the application create new ones) your Photoshop preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here.
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • Suppressing Print Dialog box

    Hi Experts,
    We have a requirement where in we want the following:
    When Print Button / Option in web templates, is clicked, report gets printed in PORTRAIT mode, without showing the Print dialog box.
    Please let us know how could this be achieved.
    Thanks,
    Shantanu.

    In the Print Button option of your web template, unflag the "Show Export Dialog" in the "Command" sub menu, and select the print options (Portrait and so on ...)
    If you want to do so for all the queries, change the 0ANALYSIS_PATTERN, or the ZANALYSIS_PATTERN you've maybe created.

  • Print html file without seeing a print dialog box

    i need to script an action that would allow a user to print a sparcly formated html file to a printer while bypassing the normal print dialog box.
    the unix lpr command seems like it might work, but the man page only mentions PS and txt files.
    Ultimately i'd want to trigger the print action from a php script, but it could be a folder action also.
    Does anyone have any suggestions or point me in the right direction.

    lp is the right command to use but you may need to convert the html file in PDF format before printing it. Just test it. Also type man lp to see more options.
    enscript is a nice utility that may help you. man enscript for more.
    Mihalis.

Maybe you are looking for

  • ABAP API - Class CL_MDM_PROVIDER_SP05_PL00 not getting

    Hi All, I am using MDM 5.5 SP05. In R/3 side , we  installed MDM_TECH 554_640  Add-On. So I can access the transaction MDMAPIC. But not getting the class CL_MDM_PROVIDER_SP05_PL00. But getting the class CL_MDM_PROVIDER_SP04_PL00. What I want to do fo

  • How to make word files in mac

    how to make word files, presentations orview such files in mac

  • MIR7 - USER RESTRICTION IN PARK & POST

    Dear Guru, I have scenario where I would like to place user restriction for parking & post of document in MIR7, further there is any kind of validation check I can place or authorisation check from bases will do or any other way pls advice in detail.

  • Load Indictor errors - Has anyone resolve this issues

    I made the modifications suggested, but the database will not open because of the error encountered in the alert log file. When trying to start the 8.0.5 database using 8.1.5 executables and libaries, I get the following error messages in the alter l

  • Is there a template for address labels?

    How di I make address lables in pages?