Printing Report - Urgent please

Hi All,
Can anyone please help me with the following printing problem.
I created a report using class cl_gui_list_tree. The report looks like our windows directory stucture. Like directory/sub-directory/file. This is NOT sapscript.
The above class does not have any print methods. I used the following code to print it. It shows the print parameter screen where we can select the printer/format etc. Once press the green check mark, it will not do anything.
The code:
case ok_code.
  when 'PRIN'.
  data: l_status type c.
  call function 'PRINT_REPORT'
    exporting
     NO_DIALOG                    = ' '
      report                       = sy-repid
   IMPORTING
     STATUS                       = l_status
   EXCEPTIONS
     ARCHIVE_INFO_NOT_FOUND       = 1
     OTHERS                       = 2
  if sy-subrc <> 0.
  endif.
First question is: Can I use the above function module for printing?
If this is not the right one please let me know the right function module.
If we can use above function module whatelse I have to do to get it printed?
Thanks in advance.

I am not sure for the function module but here is a suggestion - write data to spool, get the spool request no.
And then use fm RSPO_OUTPUT_SPOOL_REQUEST to print spool request.
You can try this approach. Let me know if you need any help to create Spool request.

Similar Messages

  • Problem with printing report (URGENT)

    hi every body, (urgent)
    When I print a report the margin of report not as i am like, i change the setting of printer to be suitable with what i want but nothong change,so the output of report not good.
    can any body tell me if can change margin of the printer from inside the report (at run time) or any solution.
    thanks
    null

    its the simple student management system where the teacher will input the marks of the students in particular subjects and store it in the database. now i have to print that on the report card. printing report as per student might be troublesome so i want to implement the " print all" button where the report card of all the students in that class will be printed in the report cards. its: printer printing the report of a student in the paper (A4 size) and then printer takes another paper sheet and then print the report of another student of same class until finish. how to accomplish this task?

  • Smartform : Printing Problem , Urgent Please

    Dear All,
    When I tried to print a smartform, I am Getting message 'Spool Request (number xxxxxx ) is created' .
    but It is not printing.
    I am facing this problem only with this form. I could print other forms / Scripts.
    What might be the error ? Please Let me Know ..
    Thanks & Regards
    Venkat
    Message was edited by: venkat Kumbham
    Message was edited by: venkat Kumbham

    Venkat,
    You can do that in two ways. Once is to set it in the USER DEFAULTS. Go to SU01 and you can see a tab for DEFAULTS.. There will be a check box for PRINT IMMEDIATELY.
    Or you can do that in the SMART Form parameters also. In the OUTPUT_OPTIONS parameters ther is a field TDIMMED. Set that to 'X'. That should print the form immediately.
    Regards,
    Ravi
    Note : Please close the thread, and mark the helpful answers if this solves your problem.

  • Forms and Print program  Urgent please!!

    I have created a copy from a standard form (F150_dunn_01) and a print program (SAPLF150). Now, Could you tell me how can I know if the form is assigned to the program? or How to assign the program to the form?
    I mean, assign to the Zform and Zprogram
    Thanks and regards.

    Hi .
        There are two ways to find out the corresponding   
        print program for a sapscript form .
    they are ,
    1.go to the change editor of ur sapscript form in transaction se78 ,place ur cursor  at any of ur screen field and goto ->print program ->symbol definition with dialog .
    here u can find out the print program of ur corrsponding form.
    2.when u r in ur main screen of tansaction se78 ,goto
    form->check->texts.
    here u can find out the print program of ur corrsponding form.
    these r the two ways in finding out ur print programs of sapscript form.
    reg any doubt reply me .
    with regs,
    karthik srinivasan

  • Calling form from report urgent please

    hi every body
    i am using form and report 6i
    i create a report and in report i create buttons front of all records
    i want to call a from from that button related to that record show in report
    can i do this if yes how can i do this
    thanks in advance khuda hafiz

    any body tell me about my problum
    thanks

  • Dynamically changing the layout of thre report-urgent please

    Can we change the layout of the report dynamically during runtime for example:the user should have flexibility to change the width, size , position of columns before the report is displayed & also he choose some fields not to display as per his discretion.
    Mahesh

    There are several ways of doing this, it really depends on your requirements as to which is suitable. (There are probably other ways of doing this as well).
    - Try Reports XML Customizations
    This is available in 6i and allows you to create a report dynamically on the fly. The template used will also allow you to change the paper size as well. The main limitation is that you are relying only on Reports defaulting to create the layout for you. The advantage is that you can store all your information to create the report in meta-data which can be driven by another tool.
    - Use lexical parameters for queries and format triggers
    Here, you have a fixed layout but dynamically change the query columns to the correct order. You would normally standardise on a "character" column type in order to do this. Even though the layout is fixed, you can use variable sized fields to push objects around. This can be difficult to setup.
    - Use several layouts
    You're reducing the options for the user, but you can have several layouts in the same report and turn them on/off. Effectively creating differing views of the same data.

  • URGENT -- Printing reports adds extra spaces in between pages

    Hello Experts,
    I would like to ask for your help regarding printing from concurrent requests.
    I am currently having an issue with printing multiple pages from Oracle reports, both in text format and RTF/PDF formats.
    When I generate a multiple page report and print it directly from a concurrent request, print outs generate extra space after each page even though page size is indicated in the reports (all of them are in letter size).
    I have already tried editing the printer drivers both the actual driver config file and through the application but the results are still the same.
    This is very important since printing is done on continuous paper and continuous pre-printed forms
    Any ideas would be greatly appreciated.
    Regards,
    Jovelyn

    Please post the details of the application release, database version and OS.
    I would like to ask for your help regarding printing from concurrent requests.
    I am currently having an issue with printing multiple pages from Oracle reports, both in text format and RTF/PDF formats.
    When I generate a multiple page report and print it directly from a concurrent request, print outs generate extra space after each page even though page size is indicated in the reports (all of them are in letter size).What if you print the output file from the OS, can you reproduce the issue then?
    Troubleshooting (Printing) [ID 104528.1]
    An Extra Empty Page Is Printed at the End of Requests Output [ID 1011499.7]
    I have already tried editing the printer drivers both the actual driver config file and through the application but the results are still the same.Can you reproduce the issue with other printers?
    This is very important since printing is done on continuous paper and continuous pre-printed forms
    Any ideas would be greatly appreciated.If the issue is urgent, please log a SR.
    Thanks,
    Hussein

  • Multi-Language report in XML Publisher(Its is urgent, Please help)

    Hi All,
    I am working on Multi-Language report. We have installed just 3 languages (English, Japaneese, Spanish) but my requirement is to display the reports in few more un-installed languages like Korea, chineese etc. I tought of doing the lables (all hard coded fields) to translate using .XLIFF file. When i try to run the report, in language settings (this is the place where the XML report takes the language input)i can see only those languages which are installed. How can pass other languages (un-installed) as a parameter in the XML report?
    Please suggest. It is very urgent.
    Thanks,
    AS

    for this functionality, i had to write a custom package to submit the request for that particualr language and set the language while setting the parameters .
    Thanks.

  • **URGENT** about printing report in charater mode through web

    hi,
    plz help me. i want to print report on EPSON LQ-2180 printer through web.
    plz tell me the URL how i can print report through report server.
    problem is i want a URL which i type in the browser and the report will go on printer.
    Thanks in advance
    Regards,
    Kamran Shahzad

    To print, include "destype=printer,desname=<printer>" in the url.
    The printer has to be accessible form the web server, not from the client.

  • Please suggest practice to generate/print reports?

    Hi,
    I don't know whether here is the right place posting my question. But I find it is related...
    I want to write an application which can print out Reports. However, I need good control of the alignment / position of the text when printed because it will be printed on pre-printed forms.
    From Java, can I fill in data and generate & open a PDF and/or Word document, which then I can print it out nicely?
    Or, anybody here has good practice to generate/print reports?
    thanks in advance,
    jackling

    You can use the iText library to generate pdfs.
    http://www.lowagie.com/iText/download.html
    Or one of the numerous open source reporting tools such as JasperReports http://jasperreports.sourceforge.net/

  • VS2005 Crystal Report Print Report Button is not working on Windows 7 x64

    Hi There,
    My application is written in VS2005 C# on x86 machine. It runs smoothly on XP pro and Vista x86 machine.
    I deployed the same to windows 7 x64 machine with CRRedist2005_x64.msi and found that the Print Report button is not working.
    So, I re-compiled my application to x64 target platform, and reinstall the application to the same machine. But nothing changed. I have surf for answer over the web but nothing found.
    Please help urgently. Any helps is much appreciated. Thks in advance.
    Edited by: chanpyvivian on Mar 26, 2010 11:14 AM

    I follow your instruction as below:
    1) download the sample app vbnet_win_printtoprinter.zip to dev computer and compile it to .NET 2005.
    - Run from my dev computer
    - Click "Print Report" button
    - Error message display - please see below
        The error was due to the default printer name hard coded in the program was not found. I have edited to my printer name and it can be printed out with no error.
    2) Use a "saved data" report so that you do not have to worry about database logon.
    can't find the "saved data", please elaborate
    3) Then copy the exe to the 64 bit box and try to print using this sample app.
    -do you mean copy the exe to the 64 bit computer for testing ?
    ERROR Message
    CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
    Invalid printer specified. ---> System.Runtime.InteropServices.COMException (0x80000201):
    Invalid printer specified.
       at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
       at CrystalDecisions.CrystalReports.Engine.PrintOptions.Copy(PrintOptions src)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FormatEngine()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at PrintToPrinter.Form1.Button1_Click(Object sender, EventArgs e) in C:\Crystal\CRNET\vbnet_win_printtoprinter\vbnet_win_printtoprinter\Form1.vb:line 91
    OK  
    Edited by: chanpyvivian on Mar 30, 2010 6:18 PM

  • Cancelled POs not appearing in isupplier PO Print Report

    Hi All,
    I am using oracle apps 11.5.10 version.My problem is that PO print report is not printing all the cancelled Purchase Orders.Its printing only the last Purchase Order which is cancelled.
    Steps to reproduce-
    1. create a multi line req in iproc..submit and on approval PO gets created.
    2.from isupplier run Printed PO report.You will see all the lines.
    3. Cancel 1st line in iproc-let it revision.run report from isupplier.You'll see all the lines along with one line that is cancelled.
    4.Cancel 2nd lines in iproc.let it revision.run report from isupplier.You will see all the lines and the new cancelled line as well.But the Cancelled line1 will not be seen.
    5.Again cancel 3rd line.When you print PO in isupplier.You will see all lines+3rd cancelled line.But the above two cancelled Lines 1 and 2 will b missing.
    Note- we have modifed the xslfo and po_lines_xml for some other changes.I have reverted the changes made in po_lines_xml but still facing the same issue.
    Please help.

    Hi,
    Please check in transaction  SXMB_MONI can found related information why it not transfer to SRM.
    Also check the purchasing data of the PO.
    Thanks,
    prasad.s

  • AP Cheque Printing Report

    Hi All,
    Can anybody help me out to do the AP cheque printing report using XML Publisher.
    Followings are the steps I did.
    1. Create rdf and register in APPS.
    Executable is defined in Customization AP application
    Concurrent Program is in Payables application.
    2. Create Data Definition and Template in XML Publisher administrator in Payables.
    3. Attached the Concurrent program in AP Format set up.
    4. Make the Payment, The report is calling and showing completed normal but the output is not coming.
    5. Then I run the XML report Publisher and pass the request id then the output is coming as PDF.
    But the requirement is when we make the payment , The output should come and it will go to the printer for printing..
    Please help me where I made the mistake.
    or please guide me what approach I should follow.
    Thanks in Advance.
    Pradipta

    Here is my code:
    function AfterReport return boolean is
    vrequest_id number;
    v_success BOOLEAN;
    v_printer fnd_concurrent_requests.printer%TYPE;
    v_print_style fnd_concurrent_requests.print_style%TYPE;
    begin
    -- Set up printer for the following reports
    -- Get the printer and style for this report for use with the following reports select printer, print_style
    into v_printer, v_print_style
    from fnd_concurrent_requests
    where request_id = :P_CONC_REQUEST_ID;
    srw.message(999, 'Print options: ' || v_printer || '/' || v_print_style);
    v_success := fnd_request.set_print_options (v_printer
    ,v_print_style
    ,1
    ,TRUE
    ,'N'
    ,'SKIP'); IF NOT v_success THEN
    srw.message(999, 'Failure to set print options'); ELSE
    srw.message(999, 'Print options set'); end if;
    -- Submit the XML Report Publisher request to complete the printed Dunning Letters
    vrequest_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
    'XDOREPPB',
    NULL,
    NULL,
    FALSE,
    :P_CONC_REQUEST_ID,
    222, -- Receivables
    'XX_ARDLPPRT_RPT',
    'en', 'N', 'RTF', 'PDF', NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    -- commit to submit request
    commit;
    IF vrequest_id = 0 THEN -- if request id
    srw.message(999, 'Failure to submit Concurrent Request to Print Dunning Letters');
    ELSE
    srw.message(999, 'request id ' || to_char(vrequest_id) || ' submitted');
    end if;
    -- Original Afterreport trigger stuff
    SRW.DO_SQL('alter session set sql_trace false');
    return (TRUE);
    end;

  • Report Problem, please help

    hello everyone,
    our company buy/purchase materials but we do not sell the items that we have bought, we use it in the company internally. the new items that was bought is stock in the Warehouse, and it will be withdrawn by each department that will use the item. we use the Goods Issue function of SBO so that we can charge the value of the item against the withdrawing party. now this is what i want to happened in my report
    EX.
    ItemCode = A0001           ItemDesc = Test Item
    AcctCode       AcctName      DocNum        Quantity
    10000000       Accounting      111               5
    10000000       Accounting      112               5
    10000000       Accounting      113               5
                                                                  15
    10000001      Engineering      114               3
    10000001      Engineering      115               3
                                                                   6
    10000002      IT                     116              4
    10000002      IT                     117              1
                                                                   5
    Grand Total                                              26
    I did some query but i cannot achieve my desired report look like and specially the details of the report. anyway this is my query
    SELECT T0.DocNum, T0.DocDate, T2.FormatCode,T2.AcctName,  T1.ItemCode, T1.Dscription, T1.Quantity FROM OIGE T0  INNER JOIN IGE1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OACT T2 ON T1.AcctCode = T2.AcctCode WHERE T1.ItemCode = '[%0]' AND  T0.DocDate >= '[%1]' AND  T0.DocDate <=  '[%2]' ORDER BY T2.FormatCode
    i saved this query, and tried if i can achieve my desire report in query print layout, adding Sort and Sub total is not possible coz it is disabled in query print layout. im really having a hard time on how to achieve this report..
    please, if u have idea on how i can achieve this report, share your ideas and expertise.
    thanks in advance.
    FIDEL

    Hi Avelino Fidel,
    XL Reporter should be installed at Server because it created seperate database at SQL.
    MS Excel 2007 is not supported. MS Excel 2005 is needed.
    From below link u can find pdf file
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/684d30e1-0701-0010-378a-de724e8453f7
    welcome u for reward me by giving points, If it is really helpfull to u.
    Thanks,
    Suresh Yerra.

  • Printing report to direct print 9i

    Hi,
    I am able to direct print the reports on web using normal parameters...i.e. desname, destype and desformat.
    When it prints successfully, it gives us a message in a separate browser window "The report has been successfully printed out"
    And we don't want this message. Can anybody tell me to suppress this window and message ?
    Command:
    WEB.SHOW_DOCUMENT('/reports/rwservlet?
    report=REPORT.rdf&userid=scott/tiger@ora&
    P_DEPTNO='||:EMP.DEPTNO||'&
    desformat=htmlcss&destype=printer', '_blank');
    Thanks,
    Martonio.

    Martonio,
    if you use RUN_REPORT_OBJECT() built-in in Forms to print Reports then you don't have this problem.
    If you request the Report directly from a Web browser, not using Forms at all, please ask the same question on teh reports forum here on OTN.
    Frank

Maybe you are looking for

  • Mac Pro and Video Card. Which???

    Hey Guys, Im planning on buying a Mac Pro and if I was not sparing any expense to get the latest & greatest, then would buying the "NVIDIA Quadro FX 4500 512MB, Stereo 3D (2 x dual-link DVI)" ensure the best high end card I can buy for my mac? Is the

  • Mapping error - Flat file to Flat file Scenario

    Hi All, Iam designing Flatfile to Flatfile Scenario. Source Structure RSET RSETSTRUCTURE 1-un S1  1-1 S2  1-1 S3  1-1 target Structure RSET RSETSTRUCTURE 1-un R1  1-1 R2  1-1 R3  1-1 Mapping RSETSTRUCTURE - RSETSTRUCTURE S1 - R1 S2 - R2 S3 - S3 Flatf

  • Is Flash Paper part of Creative Suite 5 Design Premium?

    On my old computer (Windows XP) I was using Flashpaper to convert jpg files to swf files that can be panned and zoomed. It worked great for my website. Here is an example. http://www.backcountryskitours.com/pages/tours_0300/0313_tour.htm I just purch

  • Oracle 10g EE Export Results in ORA-01001: invalid cursor Error

    Hi, I'm quite new to Oracle 10g and OCS10g. We have a crippled/corrupt SYSAUX tablespace (data file 3) which cannot be recovered using recover command anymore. So metalink support instructed us to do a export of the metadata of the working tablespace

  • Recently Upgraded to Mac 10.6.6. and I lost my CD extensions

    I recently upgraded my Mac OS to 10.6.6 and lost my CD extensions. No music CDs, no DVDs, not even the Snow Leopard cd wil mount now. Any ideas where I can download the CD extensions?