Report OutPut directly to  the printer by selecting in the selection screen

Hi Guys,
Can any one help,
How to give Report output (ALV report ) directly to the printer by selecting the printer name in the selection screen .
Sap Version is ECC 6.0.
Thanks In advance
praveen k

hi,
u can do it using submit statement.
SUBMIT TO SAP-SPOOL
Basic form
SUBMIT rep ... TO SAP-SPOOL.
Extras:
1.... DESTINATION dest         ... COPIES cop
        ... LIST NAME name
        ... LIST DATASET dsn
        ... COVER TEXT text
        ... LIST AUTHORITY auth
        ... IMMEDIATELY flag
        ... KEEP IN SPOOL flag
        ... NEW LIST IDENTIFICATION flag
        ... DATASET EXPIRATION days
        ... LINE-COUNT lin
        ... LINE-SIZE  col
        ... LAYOUT layout
        ... SAP COVER PAGE mode
        ... COVER PAGE flag
        ... RECEIVER rec
        ... DEPARTMENT dep
        ... ARCHIVE MODE armode
        ... ARCHIVE PARAMETERS arparams
        ... WITHOUT SPOOL DYNPRO
2. ... SPOOL PARAMETERS params
         ... ARCHIVE PARAMETERS arparams
         ... WITHOUT SPOOL DYNPRO
3. ... Further parameters (for passing variants)
        are described in the documentation for SUBMIT
The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Missing print parameters with SUBMIT.
Effect
Calls the report rep with list output to the SAP spool database.
Additions
... DESTINATION dest(output device)
... COPIES cop(number of copies)
... LIST NAME name(name of list)
... LIST DATASET dsn(name of spool dataset)
... COVER TEXT text(title of spool request)
... LIST AUTHORITY auth(authorization for display)
... IMMEDIATELY flag(print immediately ?)
... KEEP IN SPOOL flag(keep list after print ?)
... NEW LIST IDENTIFICATION flag(new spool request ?)
... DATASET EXPIRATION days(number of days list
retained)
... LINE-COUNT lin ( lin lines per page)
... LINE-SIZE  col(col columns per line)
... LAYOUT layout(print format)
... SAP COVER PAGE mode(SAP cover sheet ?)
... COVER PAGE flag(selection cover sheet ?)
... RECEIVER rec(SAP user name of
recipient)
... DEPARTMENT dep(name of department)
... ARCHIVE MODE armode(archiving mode)
... ARCHIVE PARAMETERS arparams(structure with archiving
parameters)
... WITHOUT SPOOL DYNPRO(skip print control screen)
With the parameters IMMEDIATELY, KEEP IN SPOOL, NEW LIST IDENTIFICATION and COVER TEXT, flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON. mode with SAP COVER PAGE can accept the values ' ', 'X' and 'D'. These values have the following meaning:
' ' : Do not output cover sheet
'X' : Output cover sheet
'D' : Cover sheet output according to printer setting
armode with ARCHIVE MODE can accept the values '1', '2' and '3'. These values have the following meaning:
'1' : Print only
'2' : Archive only
'3' : Print and archive
arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS.
Effect
Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
... TO SAP-SPOOL WITHOUT SPOOL DYNPRO
You could use this option if all the spool parameters have already been set!
reward points if hlpful.
Note
When specifying the LINE-SIZE, you should not give any value > 132 because most printers cannot print wider lists.
Addition 2
... SPOOL PARAMETERS params(structure with print
parameters)
... ARCHIVE PARAMETERS arparams(Structure with archive
parameters)
... WITHOUT SPOOL DYNPRO(skip print parameters
screen)
Effect
Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
... WITHOUT SPOOL DYNPRO
Example
Without archiving
DATA: PARAMS LIKE PRI_PARAMS,
      DAYS(1)  TYPE N VALUE 2,
      COUNT(3) TYPE N VALUE 1,
      VALID    TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING DESTINATION           = 'LT50'
            COPIES                = COUNT
            LIST_NAME             = 'TEST'
            LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
            IMMEDIATELY           = 'X'
            RELEASE               = 'X'
            NEW_LIST_ID           = 'X'
            EXPIRATION            = DAYS
            LINE_SIZE             = 79
            LINE_COUNT            = 23
            LAYOUT                = 'X_PAPER'
            SAP_COVER_PAGE        = 'X'
            COVER_PAGE            = 'X'
            RECEIVER              = 'SAP*'
            DEPARTMENT            = 'System'
            NO_DIALOG             = ' '
  IMPORTING OUT_PARAMETERS        = PARAMS
            VALID                 = VALID.
IF VALID <> SPACE.
  SUBMIT RSTEST00 TO SAP-SPOOL
    SPOOL PARAMETERS PARAMS
    WITHOUT SPOOL DYNPRO.
ENDIF.
Example
With archiving
DATA: PARAMS   LIKE PRI_PARAMS,
      ARPARAMS LIKE ARC_PARAMS,
      DAYS(1)  TYPE N VALUE 2,
      COUNT(3) TYPE N VALUE 1,
      VALID    TYPE C.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
  EXPORTING DESTINATION            = 'LT50'
            COPIES                 = COUNT
            LIST_NAME              = 'TEST'
            LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
            IMMEDIATELY            = 'X'
            RELEASE                = 'X'
            NEW_LIST_ID            = 'X'
            EXPIRATION             = DAYS
            LINE_SIZE              = 79
            LINE_COUNT             = 23
            LAYOUT                 = 'X_PAPER'
            SAP_COVER_PAGE         = 'X'
            COVER_PAGE             = 'X'
            RECEIVER               = 'SAP*'
            DEPARTMENT             = 'System'
            SAP_OBJECT             = 'RS'
            AR_OBJECT              = 'TEST'
            ARCHIVE_ID             = 'XX'
            ARCHIVE_INFO           = 'III'
            ARCHIVE_TEXT           = 'Description'
            NO_DIALOG              = ' '
  IMPORTING OUT_PARAMETERS         = PARAMS
            OUT_ARCHIVE_PARAMETERS = ARPARAMS
            VALID                  = VALID.
IF VALID <> SPACE.
  SUBMIT RSTEST00 TO SAP-SPOOL
    SPOOL PARAMETERS PARAMS
    ARCHIVE PARAMETERS ARPARAMS
    WITHOUT SPOOL DYNPRO.
ENDIF.

Similar Messages

  • Send a report output directly to client printer in 10G

    I want to send my report output to client printer instead of report server printer without view report on screen.
    I am using RUN_REPORT_OBJECT built-in, but when I set REPORT_DESTYPE = PRINTER, it send report output to report server printer, I want it on local printer.
    regards
    Rehan Mirza

    Hello,
    <p>Here is a solution by Casey Bowden.</p>
    Francois

  • Email sending: "sending report output directly to the body of the email"

    Hi
         I got one requirement.this is the enhancement to already exisitng report.when user clicks on send email check box,report has to be display and this report output has to be send to email of the particular vendor. it has be seen directly in the body of the mail.not as attachement.Report output is in ALV format.Data is stored in internal table t_data.can anyone suggest what is the procedure for this.

    Hi i have tried the same thing and it works very fine,
    i will share my code, you just follow exactly, hopefully you can solve the issue..
    you refer clearly the body of the mail,
    it should solve your issue/
    FORM send_email .
        DATA  lt_message     TYPE            bcsy_text.
        DATA  lv_mail_title  TYPE            so_obj_des.
        DATA  document       TYPE REF TO     cl_document_bcs.
        DATA  recipient      TYPE REF TO     if_recipient_bcs.
        DATA  send_request   TYPE REF TO     cl_bcs.
        DATA  sent_to_all    TYPE            os_boolean.
        DATA  bcs_execption  TYPE REF TO     cx_bcs.
        DATA  wf_string(200)  TYPE            c.
    *    DATA  wf_string      TYPE            string.
        DATA  doc_execption  TYPE REF TO     cx_document_bcs.
        DATA lv_status(20)    TYPE c.
        DATA lv_count_email TYPE i.
        DATA lv_temp_stepcount TYPE c.
        LOOP AT wt_email INTO wa_email.
          TRY.
              CLEAR send_request.
              send_request = cl_bcs=>create_persistent( ).
    *Create Title
              lv_mail_title = 'Report Title'.
    *Create Message(EMAIL Body)
              REFRESH lt_message.
              APPEND '<p><b>Dear Sir/Madam,</b></p>' TO lt_message.
              APPEND '<p>The following report shows the status of </p>' TO lt_message.
              APPEND '<br>' TO lt_message.
              APPEND '<table border= "1" color = 2>' TO lt_message.
              CLEAR wf_string.
              CONCATENATE '<th><tr>'
                          '<td>Vendor  </td>'
                          '<td>Vendor Name</td>'
                          '<td>Coloun 1</td>'
                          '<td>Coloum 2</td>'
                          '</tr></th>' INTO wf_string.
              APPEND wf_string TO lt_message.
              LOOP AT wt_itbl INTO wa_itbl WHERE vendor = wa_email-vendor. "-> Define your Condition here wt_email( should contains vendor and its respective email id)
               CLEAR wf_string.
                CONCATENATE '<tr><td>' wa_itbl-vendor '</td>' INTO wf_string.
                APPEND wf_string TO lt_message.
                CONCATENATE '<td>' wa_itbl-Vendor_name '</td>' INTO wf_string.
                APPEND wf_string TO lt_message.
                CONCATENATE '<td>' wa_itbl-COL2 '</td></tr>' INTO wf_string.
                APPEND wf_string TO lt_message.
                CONCATENATE '<td>' wa_itbl-COL3 '</td></tr>' INTO wf_string.
                APPEND wf_string TO lt_message.
              ENDLOOP.
              APPEND '</table>' TO lt_message.
              APPEND '<br>' TO lt_message.
              APPEND '<p><b>Thank You</b></p>' TO lt_message.
    *Create Document
              CLEAR  document.
              TRY.
                  CALL METHOD cl_document_bcs=>create_from_text
                    EXPORTING
                      i_text         = lt_message
                      i_documenttype = 'HTM'
                      i_subject      = lv_mail_title
                    RECEIVING
                      result         = document.
                CATCH cx_document_bcs INTO doc_execption.
              ENDTRY.
    *Add document to email
              send_request->set_document( document ).
    *Add recipients to send request
              IF wa_email-smtp_addr IS NOT INITIAL.
                recipient = cl_cam_address_bcs=>create_internet_address(
                          i_address_string = wa_email-smtp_addr ).
                send_request->add_recipient( i_recipient = recipient ).
              ENDIF.
    *Send Email
              CALL METHOD send_request->send
                RECEIVING
                  result = sent_to_all.
              COMMIT WORK.
              IF sent_to_all EQ 'X'.
                lv_count_email = lv_count_email + 1.
              ENDIF.
            CATCH cx_bcs INTO bcs_execption.
          ENDTRY.
        ENDLOOP.
        IF sent_to_all = 'X'.
          SKIP 2.
          FORMAT COLOR COL_GROUP INTENSIFIED ON.
          ULINE /(10).
          WRITE: / 'Remark : '.
          ULINE /(10).
          FORMAT RESET.
          WRITE: /  'Email Message Sent Succesfully'.
          RETURN.
        ENDIF.
      ENDFORM.

  • Print Report data directly to  a printer

    Hi
    we are working on forms11g reports11g and oracle11g DB. working in AIX system. My client system is windows7.
    when printing reports, once clicks the print button iam generating the PDF report (actually generate in server) using webuitl bring it to client and printing the report connected to the user system.
    But if a printer is installed in the server(may be many printers are installed), how can print the report to my desired printer. how can be achieved this .
    please suggest your valuable solution with example.
    a..

    Hi,
    check this link. Re: How can I  Send report output to  3 different printer programatically
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_dest.htm
    Edited by: HamidHelal on May 2, 2012 11:43 AM

  • Re : how to print report output in DOT MATRIX printer

    Hai
           how to print report output in DOT MATRIX printer.
    Thanks
    mani

    Check this
    [http://help.sap.com/saphelp_nw04/helpdata/en/90/78f078030211d399b90000e83dd9fc/frameset.htm]
    also check the SAP Note 129581

  • How to report print to the printer immediately and display the popup?

    Dear friends,
    I am running my report in background and displaying the confirm results on popup window and sending the results to printer,
    but now i want to send the results page to printer then  want to display the popup.
    i have writen my popup perform after printer perform only but its not working...when i am clossing the popup or came back from that popup then only the results sending to printer...
    How to report print to the printer immediately and display the popup?
    Thanks in advance
    Sridhar

    Hi Sudheer,
    I am using my print parameters like this :
        NEW-PAGE PRINT ON DESTINATION ws_printer
                             IMMEDIATELY 'X'
                             KEEP IN SPOOL 'X'
                             NEW LIST IDENTIFICATION 'X'
                             SAP COVER PAGE 'X'
                             ARCHIVE MODE '1'
                             LINE-COUNT 64
                             LINE-SIZE 170
                             NEW-SECTION
                             NO DIALOG.
    Then also its not printing immediatly.
    here one thing for displaying the popup i am using submit report(calling another report for popup purpose)
    before trigering the submit programe i need to print this.
    Thanks
    Sridhar.

  • A few weeks ago you sent a tip by e-mail (which I have lost) to place the "Print" icon up on the top tool bar; for printing direct from screen. Please re-send.

    A few weeks ago you sent a tip by e-mail (which I have lost) explaining how to place the "Print" icon permanently on the top tool bar (top right; underneath the "Home" icon).
    Could you kindly re-send the tip?
    Thank you

    Do the following:
    # Right click at the top of the Firefox browser
    # Select <i>Customize...</i> from the drop-down menu
    # Drag the <i>Print</i> button to the top toolbar/tab bar
    # Click <i>Ok</i>

  • I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. Any tips on how to do this?

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

    I am trying to connect a Windows 7 / 64 bit to an Epson printer on my Mac.  The printer is hooked into the Mac via USB; the Mac is networked to a Linksys wireless router with an ethernet cable, as is the Windows box. I installed the current Bonjour printer services software on the Windows machine, and separately installed the driver software for the Epson printer on the WIndows machine.  Running the bonjour wizard, I get an alert saying 'I don't have sufficient access to my computer to connect to the selected printer'.
    The printer has 'sharing' turned on from the Mac end; this works with a Powerbook via the wireless connection.  Sharing is also turned on in the Windows printer control panel for this printer (under properties).  The Mac is a G5 running 10.5.8.  When I try to print a page from the Windows machine it gets hung in the print queue.
    Any advice how to proceed would be appreciated!
    thx,

  • Why can't I connect to my brother MFC-J4510DW printer wirelessly? The printer is connected to the router and I can surf the web. I wonder if some security setting may be keeping it from connecting to my MacBook Pro.

    Why can't I connect to my brother MFC-J4510DW printer wirelessly? The printer is connected to the router.
    I can surf the web. My wife can print from her PC wirelessly on it.
    I wonder if some security setting may be keeping it from connecting to my MacBook Pro. I've installed the software, firmware and driver updates but
    it still shows "off line"
    with the printer power on. Any suggestions?

    All I can suggest right now is back up first the try to reset the printing system, (all printers in the list will be removed).
    Then connect directly to the printer via ethernet or to the Mac using USB and restart the efforts you have made up until now.
    As for router settings, it's possible but not likely that your router only allows a small number of clients. It's also posible that you have MAC address filtering on, lastly are you using the correct wireless protocol, (802.11a/b/g WEP or WPA etc)?

  • When I upgraded to 4 the printer icon disapeared and the print under "file" does not function

    When I upgraded to 4 the print icon dissapeared and the print button under the "file" drop down does not funcion. I have

    try this:
    remove the driver in system preferences > Print
    select the printer then click the minus button
    right click in the white background of the printer column > reset printing system
    reinstall the driver
    then repair permissions in applications > utility > disk utility

  • Adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?

    adobe reader xi i am running 2 display screens and when i have a file open and go to print the print page opens on my second screen.  How can I get adobe reader to just display on one screen?
    I want the capability of adobe reader to just run on one screen.

    I had the same problem.
    Try this.
    https://igppwiki.ucsd.edu/groups/publichelpwiki/wiki/a1538/Howto_Disable_Acrobat _as_the_Safari_PDF_Viewer.html

  • My ipad2 cannot find my HP A3050 j661b airprint printer although the printer is connected with the same wifi network.Software updates are current on all and my other labtops also work properly with this printer in the same network.Further more it used to

    My Ipad 2 cant find my HP3050A j661b airprint printer although the printer is connected to the same wireless network and software updates are current on all and my other laptops also work properly with this printer.further more it used to work with my IPAD2 before when I used the old wireless router but now I changed it to HAUWEI HG231f but I set everything in the same way it was. Thanks in advance.

    When you change to the new router, did you re-run the CD to re-set the new SSID and password to the printer.
    Otherwise your iPad will not be able "talk" to your printer.

  • My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    Soution: Delete the printer and add the same printer back in, therefore creating a new print queue.

  • I cannot get my MacBook Pro to print greyscale on my Canon MG6450. I cannot access the printer driver panel on the Macbook. So I am stuck printing everything in colour and cannot specify which pages I want printed.

    I cannot get my MacBook Pro to print greyscale on my Canon MG6450. I cannot access the printer driver panel on the Macbook. So I am stuck printing everything in colour and cannot specify which pages I want printed.

    Try resetting the printing system:
    OS X Mavericks: Reset the printing system
    Next try deleting the system and reinstall the printer..
    BTW this is Mac Pro desktop forum

  • HT1338 I'm trying to print a document fro safari and the print command is at the bottom of the page and not visible.  I can't move it up and the print command shortcut doesn't work.  How do I print this document.

    I'm trying to print a document from safari and the print command is at the bottom of the page and I can't move it up.  The print command shortcut doesn't work and I would like to know how I can print this document.

    Why do we have to install 2 add ins for something that should be built in? Please add this to the next version or an update to this one even. We should see the full path of a bookmark when we search for it. Show Parent Folder alone isn't enough if you have sub folders, so I installed Go Parent Folder as well in case of sub folders.

  • Disableing the printer color management in the printer settings box

    Hello
    I am printing on a Epsonstylus r1800 printer using windows 8..  Printer has new drivers v6.55 The Adobe print setup reminds me to disable the printer color management in the print settings box. I can't find where to do this in the print settings box. Resulting in color that is way off. Any thoughts?

    Must be done in the printer driver.
    This is an example for the Epson 3880
    First click on Print settings and in the dialog that opens look for Color Adjustment but that differs with the printer model...

Maybe you are looking for

  • Steps to get deleted photos back

    Is there any steps to getting your deleted photos recovered???

  • Images in galleries not showing in full screen mode

    I have a number of galleries in my ibook.  Some of them work fine and the pictures open up in full screen when tapped/pinched.  Other gallers dont allow me to view the pictures in full screen.  I have created them all the same way as far as I know. 

  • Problem with file searching

    I m trying to create a website using jsp . In that course i hav to search files (in the same or other directory) . how to do that. plz help

  • Can Tooltips be used with Page View data sets?

    Does the Tooltip widget alway look only at {ds_CurrentRowID} ? Since my Tooltip content area is displaying a spry:detailregion of items in a paged view it will only display data from the first row of each page. Is there a way to work around this? tha

  • Speed of weblogic serving static pages

    Has anyone seen fairly slow page serving (measured from the end-user's point of view) for weblogic 4.5? Even when the system isn't hardly loaded at all, we have users complain about slow response times. The consensus is the stuff running on WebLogic