Error in Print Report.vi

I get "Unknown Error in Print Report.vi", error code -2147352567 when I run Text Report Example.vi in LabVIEW 6.1. My own code that ran OK in LabVIEW 6.0.2 also produces this same result in V6.1. I have not changed printers. Help.

Hi.
I don't have exact solution for your problem, but it is very familiar to what I experienced.
I install 6.1 and Report Generation toolkit included with new package. I had all my programs written in 6.0.2 with Report Generation from version 1.0.
Almost every other VI from Report Generation did not work after I recompiled my VI into Labview 6.1. I spent several days trying to understand what is going on, made several calls to NI tech support, but nobody could help me. Finally I found solution:
Uninstall New Report Generation toolkit Version 1.0a included into latest package of Labview 6.1 and install the very first version (I have it distributed as separate CD).
After such maneuver everything works fine.
I had another problem with this tool and especially Pri
nt report.vi:
I have PDS package, and Print report.vi works excellent on my computer printing Standard Report. However when I create stand-alone application and distribute it together with run-time engine on user computers, it gives me error and I can only print creating Excel or Word type of report.
So, that is my experience. I think NI still has several bugs to work on. And if you find any other solutions, please let me know.
Good luck.

Similar Messages

  • Error when printing reports from forms in Linux

    Im having an error when printing a report from a form. The problem is, only with certain forms. when printing a report (to PDF) from other forms, it prints with no problems. The oracle is 10g AS and operating system is Redhat AS 3.
    The error, in the log from the reports server is:
    [2004/9/7 7:14:59:599] Exception 62204 (): Internal error writing the image BandCombine: a row of the matrix does not have the correct number o
    f entries, should be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=62204,
    java.lang.String errorString="Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, sh
    ould be OpImage.getExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..",
    java.lang.String moduleName="REP"
    at oracle.reports.utility.Utility.newRWException(Utility.java:604)
    at oracle.reports.toolkit.image.writer.JPEGImageWriter.writeImage(JPEGImageWriter.java:130)
    at oracle.reports.toolkit.image.ImageManager.writeJPEGImage(ImageManager.java:524)
    at oracle.reports.engine.EngineImpl.CRunReport(Native Method)
    at oracle.reports.engine.EngineImpl.run(EngineImpl.java:353)
    at oracle.reports.engine.EngineClassPOATie.run(EngineClassPOATie.java:84)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:117)
    at oracle.reports.engine.EngineClassPOA._invoke(EngineClassPOA.java:62)
    at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
    at com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java:492)
    at com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapter.java:64)
    at com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java:653)
    at com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.java:99)
    at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
    [2004/9/7 7:14:59:599] Error 50103 (C Engine): 19:14:59 ERR REP-0069: Internal error
    REP-62204: Internal error writing the image BandCombine: a row of the matrix does not have the correct number of entries, should be OpImage.get
    ExpandedNumBands(source0.getSampleModel(), source0.getColorModel()) + 1..
    [2004/9/7 7:14:59:600] Error 50103 (C Engine): Error Writing Image, ID 2
    [2004/9/7 7:14:59:601] Error 50103 (rwtic:rwticga): Look up for image attributes for image 2
    [2004/9/7 7:14:59:602] Error 50103 (rwtic:rwticgi): Looking up for Image, ID 2 in the cache
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Loading the Image into the cache
    [2004/9/7 7:14:59:603] Debug 50103 (ImageManager:getImageSource): Retrieving the Image object for ID : 2
    [2004/9/7 7:14:59:603] Error 50103 (rwtic:rwticgi): Image successfully loaded into the cache
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageHeight ): Start Height : 155
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageWidth ): Start : width : 138
    [2004/9/7 7:14:59:604] Debug 50103 (ImageSource:getImageColorSpace ): Start
    [2004/9/7 7:14:59:608] Exception 50125 (): Caught exception: java.lang.NullPointerException
    exception oracle.reports.RWException {
    oracle.reports.RWError[] errorChain={struct oracle.reports.RWError {
    int errorCode=50125,
    If anyone could help me, is important !
    Thx in advance
    Bruno Santos                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Raise a TAR I reckon

  • Receiving an error in Print Report.vi in the Text Report Example.vi

    I am trying to run the "Text Report Example.vi" example under Windows XP Professional, MS Office 2003 and LV 6.1 and I get an error in the "Print Report.vi" saying that there is an unknown error (-2147452567). I have searched through the Knowledgebase and found a couple of things to try but none of them worked (namely this solution). Is there a known problem with Office 2003 and LabVIEW 6.1? I can run the same example on another computer that is running the same setup except that it has MS Office 2002 SP3 and it prints properly.

    There are several reasons why you could get this error. There was a problem with a DLL change that caused either an invoke node or a property node (sorry, I don't remember which) to need to be replaced or relinked. I think that this is the problem that you linked to.
    The other potential problem is that you could be calling a font that you have on one of the computers but not on the other.
    I hope that this helps,
    Bob Young
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]

  • Error when print report from apex using apex listener 2

    Hi
    Apex 4.2
    I want print report to pdf from apex using apex listener 2.
    The print server 'Oracle APEX listener' has been defined at the instance-level.
    ACL has been configured.
    I attempt to download a report in PDF mode, it appears that it downloads,
    but when I go to open it up I get an error that the file is of the wrong type or possibly corrupt.
    Upon opening the file in Text editor, there is an error as below
    %PDF-1.4
    1 瀛楄妭鐨?UTF-8 搴忓垪鐨勫瓧鑺?1 鏃犳晥銆?

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • Fatal error at printing report

    When i add a table with records more than 500 rows to the report and print it to pdf with FreePdfXP, an Error-Dialog shew up with the note " Error: -2147352567 occurred at failed to open printer". After clicking on the button "Stop" an other dialog shew up with "Fatal Internal Error: "drawmgr.cpp", line 3504 LabVIEW Version 7.1". Then the complete Labview programme was shut down.
    When the number of the rows doesn't exceed 500, the printing report works without error. But by the second time of printing report the error shew up again when the total rows of records at first and second time of printing report are more than 500.
    Can anyone give me some suggestion,  thank you in advance.

    Sorry, i have just wanted to change the message subject. but i can't find the edit link.
    i guess, this problem would be due to the FreePdfXP-Driver or the Print Report.vi .

  • What does the error code -41004 mean in print report.vi?

    I am getting the following error in the Print report.vi.
    Error Code : -41004
    Error Scource : Print Report.viPrint_VI_Image.vi

    Hi
    I have attached the main vi which is using the NI-Print Report.vi.
    I have also attached the image of the error desciption I got.
    Attachments:
    OPG_Print_to_PDF.llb ‏94 KB
    error.bmp ‏273 KB

  • Error 97 when running built application and printing report.

    I get the following message:
    Error 97 occurred at Unknown System Error in Print Report.vi->PM Workorder.vi->NEW PM main.vi
    Null Refnum was passed in as input
    when I try to run my built application, but it will run fine as a vi. I am using the Report Generation Toolkit with the Excel functions. I am opening an Excel template, adding data, and then printing. When I run the built application it looks like Excel is not opening up, but when I run the vi, I can see excel open and the report is sent out to the printer. I am running both the built application and the vi on the same computer.

    Hello,
    I found a similar problem some month ago. I solved including in the application the excel vi's library, that you will find in the labview directory addons.
    I hope this info will help you!
    Regards
    Neon

  • Purchase Order Print Report Compilation Error

    Hi,
    While compiling the report in Reports Builder Purchase Order Print Report , we get the following error:
    identifier GET_PRECISION must be declared.
    Where as this is a seeded function inbuild in the Program Units.
    Also while compiling on server we get the error.
    Cannot convert rdf to rep.
    Thanks,
    Angelica.

    Couldn't find how to copy the PO layout over using copy express.
    I did compare the RDOC fields for POR20002 in both databases and they are Identical. 
    In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing.  Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places.  When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
    Again, SBODemoUS works correctly and AAA_TEST give the error.

  • Error 7 occurred at Get LV Class Default Value.vi only in my executable for Print Report - LV 2010 SP1

    I have a program written which uses the print report function. Everything works fine in the uncompiled code, my report prints just fine. I can compile my project all the way to a full installer. When I run the executable I get the error:
    Error 7 occurred at Get LV Class Default Value.vi
    With the following text:
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    =========================
    NI-488:  Non-existent board.
    Complete call chain:
         Get LV Class Default Value.vi
         NI_report.lvclass:New Report.vi
         print report.vi
         EMS V3.0 streamline.vi
    LabVIEW attempted to load the class at this path:
    H:\InMotion\EMS\builds\EMS_01\Emissions Analyzer\EMS.exe\1abvi3w\vi.lib\Utility\NIReport.llb\Standard Report\NI_Standard Report.lvclass
    "EMS V3.0 streamline.vi" is my main vi, "print report.vi" is the subvi that creates and prints the report based on all the information sent to it. I get no warning when I compile this to an executable. I already tried repairing both LV SP1 and the report generator toolkit. No change after I compile to an exe.
    Any help would be appreciated. Thanks.
    Garrett Herning

    Ok, I tried that... and now I get an error when I try to compile to an executable... This is right at the end of the build and will not let me build an executable.
    Error:
    An error has occurred. Expand the Details section for more information.
    Details:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 7 occurred at Invoke Node in AB_Build.lvclass:Copy_Files.vi->AB_Application.lvclass:Copy_Files.vi->AB_EXE.lvclass:Copy_Files.vi->AB_Build.lvclass:Build.vi->AB_Application.lvclass:Build.vi->AB_EXE.lvclass:Build.vi->AB_Engine_Build.vi->AB_Build_Invoke.vi->AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS X, and / on Linux. Verify that the path is correct using the command prompt or file explorer.
    =========================
    NI-488:  Non-existent board.
    Method Name: Linker:Write Info To File

  • Error While Printing the Report

    Post Author: saqib
    CA Forum: .NET
    HI All,I have joined this forum recently. I found this forum so helpful. I have one query which is: I am using crystal report 10 with Dot Net 1.1, I have created one web report which consists of 19 pages. Once i press the print button on the report after previewing it shows me the error reporting screen of windows. I have checked in event viewer it gives me the following error detail:The description for Event ID ( 1000 ) in Source ( Microsoft Internet Explorer ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: iexplore.exe, 6.0.2800.1106, printcontrol.dll, 10.0.0.533, 0003bb45. Can any one helps me as i am totally stuck in that. Thanks in advance.  

    Try the following if your printer is a network printer
    1. Add Printers - select Local Printer
    2. In the Add Printer wizard, select "create a new port" option and select "TCP/IP" as type
    3. Write the IP address of the network printer in the "Add standard TCP/IP Printer Port wizard". The port name becomes IP_<ip addr>. Click Next.
    4. Select the printer and printer type in "Add Printer" wizard.
    5. Select a driver and Write a printer name. This completes the setup. Use this printer name to print from Oracle reports.
    Hope this helps..
    Yogesh
    I am getting this error message while printing the report on Network Printer.
    "REP-1849: Failed while printing"
    Reports Server is not installed on my machine.
    On shared printer, it has no problems.
    Platform is Win2000. Report Builder 6.0.8.11.3
    Plz help !
    Thanks in advance !

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • APEX 3.0 print report error (empty file).

    I installed BI 10.1.3.2.0 successfully.
    I tested my convert servlet (which comes with BI Publisher)
    by trying to go there directly in browser:
    http://roman:80/xmlpserver/convert
    I get the message in Firefox:
    "500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details".
    The application.log contents:
    "07/04/09 16:42:38.928 xmlpserver: Servlet error
    javax.servlet.ServletException: XML data or RTF template is null.
         at oracle.apps.xdo.servlet.Converter.doPost(Converter.java:99)
         at oracle.apps.xdo.servlet.Converter.doGet(Converter.java:50)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g
    (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)".
    It's mean that servlet is up and running.
    I specify the following attributes:
    Oracle BI Publisher: Advanced Support
    Print Server Protocol: HTTP
    Print Server Host Address: roman (the name of my computer)
    Print Server Port: the port 80
    Print Server Script: /xmlpserver/convert
    When i click on link "Print report" in my application i receive the empty pdf file
    (file size is zero).
    Is it any idea ?
    Regards,
    Roman

    Hi Marc!
    I uninstalled BI EE. Then I installed Bi EE again. I selected the Basic setup and BI Publisher only. BI Publisher has been successfully installed on my computer.
    The number of port is 9704. (My previous mistake was the port number - 80!!!).
    Then I start oc4j.
    I tried Application Builder home page built-in report. It's work fine!
    But i received some problems with print report in my own application.
    If i selected "Use Generic Column Names (parse query at runtime only)" in source settings of my region i received an empty PDF file (0 bytes).
    When i selected "English (United-States) en-us in Globalization settings and also
    selected "Use Query-Specific Column Names and Validate Query" in source settings of my region i received the fine report.
    I am using the "Default report Layout".
    But I want to receive the report based on "Query-Specific Column Names and Validate Query". And also I want to have "Russian (ru) Globalization settings in my application.
    Do your have any advice ?
    Regards,
    Roman.

  • Print Report Error

    Hi,
    When I try to print a standart landscape report, Print Report.vi gives error (error -41002 NI-Reports: Invalid printer Name)
    I can read Default printer with query avilable printers vi so the name can not be wrong. Do you have any suggestion ? The default printer is adobe pdf...
    Thanks

    Two other good alternatives that are ad-free are PDF Creator and CutePDF Writer.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • The only working print-related function in BioBench1.2 on my PC is the "Print Report", all the other "Print" functions gave me "Error, the printer is not set up correctly".

    I used to print all my BioBench data by first exporting them to Excel and then print from there. Recently I need to print some of the screen shots and some data directly from array analysis, but when I click on the "print" buttons, the "Error, the printer is not set up correctly" message occurs. The only thing I can print from BB without this error is the report printing function. I have a postcript printer and I have set the postscript option to be "true"... Thanks !

    This problem is a result of a limitation in Windows 9x regarding the size of an image that you can send to the printer. The problem does not occur on Windows 2000/NT. This problem appeared with the increased color options of LabVIEW 6.0 on which the BB1.2 is based.Although it is not immediately obvious, your video driver and settings play a role in printing.
    1. Try adjusting the color palette your driver uses (i.e., 256 color, high olor, true color). The error may occur only in one of these modes. Also, change the resolution (number of pixels) to represent the Screen Area; e.g., change from a 1024 x 768 display to an 800 x 600 pixel display.
    2.Certain video drivers also support "acceleration" modes. Using a non-accelerated mode often eliminates the error. For
    Windows 95/98, right-click on your My Computer icon and select "Properties" from the pop-up
    menu. On the Performance tab, click the Graphics button and change the Hardware Acceleration (e.g., if it is set to "Full", lower the setting a notch or two); for Windows 2000/NT, right-click on your Desktop and select "Properties" from the pop-up menu. On the Settings tab, click the Advanced button and go to
    Troubleshooting.
    3.In Windows, the standard VGA driver provided by the operating system is very stable. Try using this driver in place of the specific one written for your video hardware. If the error is eliminated, there is likely a problem with your vendor-provided video driver.
    4.These errors are most often fixed with the latest
    video/printer driver. Be sure to contact your hardware manufacturer and install the latest driver. An easy way to determine if your error is "driver-related" is to move your code to another machine (and hopefully a different set of drivers) and see if th
    e error persists. If the problem is printer related, try another printer.
    5.Make sure there are at least 100M avalible space in your C: drive. If not, set the virtual memory to the other drive which has larger available space.

  • Run time Errors GETWA_NOT_ASSIGNED at Time of Print Reports.

    Hello hy All experts.
    I ma trying to print Reports, but at time of preview i got an error message. Run time Errors GETWA_NOT_ASSIGNED.
    Please Give me Solutions.
    Thnks
    Bhavesh Panchal.
    Baroda

    FORM fetch_data.
      break mtabap.
      SELECT *
              FROM vbep
              INTO TABLE it_vbep
              WHERE edatu IN so_edatu
              AND vbeln IN so_vbeln.
      IF NOT it_vbep[] IS INITIAL.
        SELECT *
                       FROM vbak
                       INTO TABLE it_vbak
                       FOR ALL ENTRIES IN it_vbep
                       WHERE vbeln = it_vbep-vbeln
                       AND kunnr IN so_kunnr.
      ENDIF.
      IF NOT it_vbak[] IS INITIAL.
        SELECT *
                FROM vbpa
                INTO TABLE it_vbpa
                FOR ALL ENTRIES IN it_vbak
                WHERE vbeln = it_vbak-vbeln
                AND   posnr = space.
        SELECT *
                 FROM vbap
                 INTO TABLE it_vbap
                 FOR ALL ENTRIES IN it_vbak
                 WHERE vbeln = it_vbak-vbeln.
    Select all Customer Data
        SELECT * FROM kna1 INTO TABLE it_kna1
        FOR ALL ENTRIES IN it_vbak
        WHERE kunnr = it_vbak-kunnr .
        SELECT *
                 FROM vbkd
                 INTO TABLE it_vbkd
                 FOR ALL ENTRIES IN it_vbap
                 WHERE vbeln = it_vbap-vbeln.
               and posnr = IT_VBAP-POSNR.
        SELECT *
                 FROM vbbe
                 INTO TABLE it_vbbe
                 FOR ALL ENTRIES IN it_vbap
                 WHERE vbeln = it_vbap-vbeln
                 AND posnr = it_vbap-posnr.
        SELECT *
                 FROM vbup
                 INTO TABLE it_vbup
                 FOR ALL ENTRIES IN it_vbap
                 WHERE vbeln = it_vbap-vbeln
                 AND posnr = it_vbap-posnr.
        SELECT *
                 FROM konv
                 INTO TABLE it_konv
                 FOR ALL ENTRIES IN it_vbak
                 WHERE knumv = it_vbak-knumv
                 AND kinak = space .
        SELECT *
              FROM vbrp
              INTO TABLE it_vbrp
              FOR ALL ENTRIES IN it_vbak
              WHERE aubel = it_vbak-vbeln.
        IF NOT it_vbrp[] IS INITIAL.
          SELECT * FROM likp
                            INTO TABLE it_likp
                            FOR ALL ENTRIES IN it_vbrp
                            WHERE vbeln = it_vbrp-vgbel.
          SELECT * FROM lips
                            INTO TABLE it_lips
                            FOR ALL ENTRIES IN it_vbrp
                            WHERE vbeln = it_vbrp-vgbel
                            AND posnr = it_vbrp-vgpos.
        ENDIF.
      ENDIF.
      LOOP AT it_vbap.
        itab-posnr = it_vbap-posnr.
        itab-posar = it_vbap-posar.
    ITAB-BRGEW = IT_VBAP-BRGEW.
        itab-brgew = it_vbap-brgew.
        itab-ntgew = it_vbap-ntgew.
        READ TABLE it_vbak WITH KEY vbeln = it_vbap-vbeln.
        itab-vbeln = it_vbak-vbeln.
        itab-netwr = it_vbak-netwr.
        itab-kunnr = it_vbak-kunnr.
        READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln.
        itab-edatu = it_vbep-edatu.
        READ TABLE it_kna1 WITH KEY kunnr = it_vbak-kunnr.
        itab-name1 = it_kna1-name1.
        READ TABLE it_vbkd WITH KEY vbeln = it_vbap-vbeln .
        itab-bstdk = it_vbkd-bstdk.
        itab-bstkd = it_vbkd-bstkd.
        READ TABLE it_vbrp WITH KEY aubel = it_vbap-vbeln aupos = it_vbap-posnr.
        READ TABLE it_lips WITH KEY vbeln = it_vbrp-aubel posnr = it_vbrp-aupos.
        itab-delivery = it_lips-vbeln.
        itab-lfimg = it_lips-lfimg.
        READ TABLE it_likp WITH KEY vbeln = it_vbrp-aubel   .
        itab-lfdat = it_likp-lfdat.
       itab-ntgew = it_likp-ntgew.
        break mtabap.
        READ TABLE it_vbup WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
        itab-lfsta = it_vbup-lfsta.
        READ TABLE it_vbep WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
        itab-wmeng = it_vbep-wmeng .
        itab-bmeng = it_vbep-bmeng.
        READ TABLE it_vbbe WITH KEY vbeln = it_vbap-vbeln posnr = it_vbap-posnr.
        itab-omeng = it_vbbe-omeng .
        READ TABLE it_konv WITH KEY knumv = it_vbak-knumv
                                    kposn = it_vbap-posnr
                                    kschl = 'PR00'.
       ITAB-KBETR = IT_KONV-KBETR / 10. " CONDITION RATE
        itab-kbetr = it_konv-kbetr.
        itab-kwert = it_konv-kwert . "CONDITION VALUE
       itab-pending_val =  ITAB-OMENG * ITAB-KWERT .
        itab-pending_val =  itab-omeng * itab-kbetr .
        APPEND itab.
      ENDLOOP.
    ENDFORM. "data_retrieval
    *&      Form  build_listheader
          text
         -->IT_LISTHEADER  text
    Show quoted text -
    FORM build_listheader USING it_listheader TYPE slis_t_listheader.
    DATA HLINE TYPE SLIS_LISTHEADER.
      DATA: ls_line TYPE slis_listheader.
    bhavesh
    HLINE-INFO = 'report Developed by Bhavesh'.
    HLINE-TYP = 'H'.
    Header
    Bhavesh
      CLEAR ls_line.
      ls_line-typ = 'H'.
    LS_LINE-KEY: not used for this type
      ls_line-info = 'Sales ORDER Report'.
      APPEND ls_line TO it_listheader.
    bhavesh
    ***Selection
      CLEAR ls_line.
      ls_line-typ = 'S'.
      ls_line-key = 'Key 1'.
      ls_line-info = 'SFEL'.
      APPEND ls_line TO it_listheader.
      ls_line-key = 'Key 2'.
      ls_line-info = 'SFEL'.
      APPEND ls_line TO it_listheader.
    ***Action
      CLEAR ls_line.
      ls_line-typ = 'A'.
    LS_LINE-KEY: not used for this type
      ls_line-info = 'Status list'.
      APPEND ls_line TO it_listheader.
    ENDFORM. "BUILD_LISTHEADER
    *ENDFORM. "build_listheader
    *&      Form  display
    *&       text
    FORM display.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
              i_callback_program      = sy-repid
             i_callback_top_of_page  = 'TOP_OF_PAGE'
              is_layout               = alv_layout
              it_fieldcat             = i_fieldcat
             it_events               = gt_events[]
              i_callback_user_command     = 'USER_COMMAND'
              i_grid_title            = 'BHAVESH REPORT'
            TABLES
              t_outtab                = itab[].
      CLEAR : itab .
    ENDFORM.                    "display
    *&      Form  top_of_page
          text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = it_listheader[].
    i_logo = 'ENJOYSAP_LOGO'.
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE

Maybe you are looking for

  • Definitive Word On ID3 Tags, Library Files & Which Data Is Stored Where...

    I have spent a few hours just now (and have read the discussions a lot previously) on various iTunes issues, namely ones pertaining to organization and storage of data & info. I still have quite a few questions I would like the definitive answers for

  • Low disk space (Boot Camp) - can I repartition my hard drive?

    Hi there - I am a MacBook user through and through.  However, I partitioned my hard drive 3 years ago using Boot Camp to do some light Windows-only work.  I only partitioned 8 GB to Windows, which wasn't a problem til now.  I'm now trying to use some

  • Getting lines in prints Photoshop CS6

    Hello, I am getting lines in my prints from PhotoShop CS6. My printer is the Canon MX522. Ive noticed that printing from other *dumb* programs such as Microsoft Paint the images look fine BUT with photoshop the images print ultra fast and have lines.

  • The open new tab (+ sign button) unexpectedly stopped working when I click on the + sign why?

    The + sign button that opens a new tab (called Untitled) stopped working. When I go to File, and click on New Tab, that does not work either. I checked the Options and made sure the "Open new window in new tab instead was checked. I tried System Rest

  • What happens when you cancel your phone plan?

    My contract through at&t is up in June, and I was just wondering if anybody knew what happens if I cancel my phone plan. Does my phone just work like an ipod touch, or... what? I heard a rumor that it did, but it was more speculation than fact.