Problem with report COMPUTE SUM

hi @all
hope sombody can help me
i have a prob with a report in sql, see script below:
CLEAR COLUMNS BREAKS COMPUTES;
COLUMN WORK_TYPE FORMAT a95 HEADING 'Work Type' ENTMAP off
COLUMN TEXT FORMAT a95 HEADING 'Work Description' ENTMAP off
COLUMN TOTAL_MAN_MINUTES FORMAT 9999.99 HEADING 'Working Hours' ENTMAP off
COLUMN TOTAL_MAINT_MAN_MINUTES FORMAT 9999.99 HEADING 'Maintanance Hours' ENTMAP off
BREAK ON report
COMPUTE SUM OF TOTAL_MAN_MINUTES TOTAL_MAINT_MAN_MINUTES ON report
SELECT MWO.WORK_TYPE AS Work_TYpe, WORK_TYPE.TEXT AS Description, SUM(TRUNC(MAINT_ACTION.TOTAL_MAN_MINUTES / 60, 2)) AS Working_Hours, SUM(TRUNC(MAINT_ACTION.TOTAL_MAINT_MAN_MINUTES / 60, 2)) AS Maintanance_Hours
FROM MAINT_ACTION, MWO, WORK_TYPE
WHERE MWO.MWO_ID = MAINT_ACTION.originating_mwo_id
AND MWO.WORK_TYPE = WORK_TYPE.CODE
AND MWO.AC_SERIAL_NO = 'AS0007'
AND MAINT_ACTION.START_DATE_TIME_ACT >= '01.04.2010'
AND MAINT_ACTION.START_DATE_TIME_ACT <= '01.05.2010'
AND MWO.WORK_TYPE BETWEEN '000' AND '999'
GROUP BY MWO.WORK_TYPE, WORK_TYPE.TEXT
ORDER BY MWO.WORK_TYPE, WORK_TYPE.TEXT;
what i expect is the total working_hours and maintanance_hours per column at the last line from the output, but what i get is only that below
WORK_TYPE DESCRIPTION WORKING_HOURS MAINTANANCE_HOURS
041, blablabla, 1,16, 0,58
105, sülzsülz, 2, 1,5,
348, bla, 3, 2,33,
what is my mistake??
sorry for my bad english
cu ice
Edited by: Icebear on May 14, 2010 1:28 AM

Hi,
The SQL*Plus command:
COMPUTE SUM OF TOTAL_MAN_MINUTES TOTAL_MAINT_MAN_MINUTES ON reportmeans "from now on, any time there a result set has is a column called TOTAL_MAN_MINUTES or TOTAL_MAINT_MAN_MINUTES, print the grand total of that column at the end of the report."
Your result set does not have columns with those names, so the COMPUTE statement does not apply to that query.
The alias used in the output is what's important; SQL*Plus won't try to find out what columns from the table were used in deriving all the output columns.
Try using the same column names in both the COMPUTE statement and the query.
For example:
COMPUTE SUM OF   Working_Hours   Maintanance_Hours    ON report

Similar Messages

  • I had to uninstall firefox since it was causing so many problems with my computer. I was using the latest version 18. What is the problem?

    I have had nothing but problems since I installed the latest version of Firefox version 18. It hangs up my computer no matter what I am doing. Even if I am not using the browser. I uninstalled it three times and the problems just seemed to be getting worse. I finally uninstalled it and did not reinstall it again. I am not going to use it again until the problems are fixed. I also don't know what funmoods is or whatever it is that replaced my google home page. I don't like software deciding what services I should use. I have been a firefox user for over 15 years. I have never had problems like this before. I have switched to Safari. It works without interfering with the other tasks I am doing on my computer. I don't know what version 18 did but the previous version of firefox I was using was perfectly fine. I had no problems whatsoever with it. It appears as if this version was not sufficiently tested. Also my daughter is having the same problems with her computer and they all started with the new version. So it isn't just me. At least give us the option of going back to the previous version and asking us if we want to upgrade when a new one comes out. However, I have never had these problems in the past with any version of firefox I installed. I like the features of firefox but cannot afford to keep rebooting my computer. It seems that firefox gets hung up and then hangs the computer up and I can't do anything else even if I am not using it. It seems to stay on in the background and hang everything up. Please fix this.

    It most definitely is the browser that is causing most of the problems. I have used Firefox so long, I can't even remember. Maybe since its beginning. But today is a sad day. I gave up on it. I can't accomplish anything and end up spending hours troubleshooting. I see I am not alone. I am so sick of it "not responding." It's simply not worth it to spend so much time trying to make the thing work, so I can actually do something. Installed, removed, reinstalled numerous times, and I can't fix your software on my Win 7 Pro machine. No problems with IE or Chrome. So. as much as I hate Google Update, Chrome has won the test. Sad, sad day for me to lose Firefox, but it just does not work on the Win 7 machine. I don't have the same issues with the XP machine and have exactly all the same add-ons. Keep it up developers and you will have no Win 7 users at all.

  • I have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    i have some problem with my computer because when i turn it up, the screen turns in a blue colour and the sound doesn't work and in this way i can't hear anything

    Will u help me or not?

  • The upgrade to Firefox 4 is causing massive problems with my computer. How do I uninstall it and go back to using the previous version?

    Firefox 4 is absolutely awful - it is causing massive problems with my computer. How do I uninstall Firefox 4 and go back to the previous version of Firefox?

    According to the instructions given on the Norton Community forum under "Other Norton Products/Comcast-Customers - Norton Toolbar Problem in Firefox 10", I have done everything necessary. And I do have a Norton toolbar (Safe Web and Identity Safe) when I open Firefox 10. As was mentioned in the previous posts here, you need to run manual LiveUpdate then reboot until you have version 5.2.0.13. Then reboot and run manual LiveUpdate again and reboot once more. One thing that I noticed is that Norton never told me that it had updated the patch for Firefox 10, so I didn't know. I guess if you have the toolbar when you run Firefox 10, then you have done it all.

  • Hi Guys 'n' Gals! I have a problem with my computer going into 'Display Sleep' mode and it actually goes into full sleep mode. anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never go into computer sleep

    Hi Guys 'n' Gals!
    I have a problem with my computer not going into 'Display Sleep' mode but actually goes into full Computer Sleep mode. Anyone know how to keep my Mac running software and not go into full sleep after I have set it to 'Never' go into 'Computer Sleep' within the 'energy saving' section!
    Any ideas guys?
    Miffa!

    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the  appropriate method.

  • I downloaded OS X Lion on my iMac and I'm having problems with my computer waking up after hibernating.  I can get to the login screen but my mouse will be frozen.  The only fix's is a hard reboot.  Any help would be great!

    I downloaded OS X Lion on my iMac and I'm having problems with my computer waking up after hibernating.  I can get to the login screen but my mouse will be frozen.  The only fix's is a hard reboot.  Any help would be great!

    Try resetting the SMC and the PRAM.
    1. SMC
    Read this and follow the instructions for your kind of mac:
    http://support.apple.com/kb/HT3964
    2. PRAM
    Follow the procedure below:
    1. Power down the machine.
    2. Locate the following keys on your keyboard in preparation for Step 4:
    command–option–P–R
    3. Press the ‘power on’ button.
    4. Immediately – and before the grey screen appears – hold down ‘command-option-P-R’ all together.
    5. Keep them held down until you’ve heard the start-up chime twice. After you release them you should hear it again, and hopefully your Mac will boot up as it should normally.

  • Has anyone ever had a 'apple support' person randomly call your house saying there's a problem with your computer?

    Had someone from 'apple customer support' just call my house saying that there is a problem with my computer because there has been a lot of activity on it and asked me to turn it on so he could help me fix it.
    There's nothing wrong with my computer first off..lots not even a Mac.
    Didn't give him any info
    Anyone else heard about this happening as part of a scam?

    I've read of some knowledgable users being able to string these scammers, who are probably mostly low-rent phone dialers with a script to follow, along for ten or fifteen minutes by asking all sorts of naive questions. The transcripts I've seen have been pretty funny. Here's a couple that make good reading:
    http://arstechnica.com/tech-policy/2012/10/i-am-calling-you-from-windows-a-tech- support-scammer-dials-ars-technica/
    http://blog.malwarebytes.org/fraud-scam/2013/04/phone-scammers-call-the-wrong-gu y-get-mad-and-trash-pc/

  • Problems with report builder 3.0 in SCCM 2012 R2 CU2

    Hi All
    I have problems with editing  (Using Report builder) existing reports  or creating new ones in SCCM 2012 R2 CU2
    We version of SQL we use is SQL 2008 R2 SP2
    I already asked this question in the SCCM 2012 forum but the problem is not related to SCCM but has something to do with application report builder
    I changed the registry key and edited the Microsoft.ConfigurationManagement.exe.config.xml as described in the following link
    http://blogs.technet.com/b/smartinez/archive/2012/07/03/system-center-2012-configuration-manager-create-report-don-t-work-what-do-i-do-now.aspx
    Afterwards I try to edit an report I see report builder is being downloaded and after it generates the following error “Application did not succeed. Unable to continue”
    Error details are
    Following errors were detected during this operation.
    * [22-7-2014 13:55:07] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.Deployment
    - Stack trace:
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
    at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
    at System.Deployment.Application.ComponentVerifier.VerifyComponents()
    at
    System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions
    options)
    at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
    at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
    at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
    at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
    And in the SmsAdminUI.log I noticed the following error
    [16, PID:4460][07/21/2014 14:11:43] :[ReportProxy] - User-specified default Reporting Point [Server1.local.nl] could not be found, [Server2.local.nl] is now the default Reporting Point.
    [1, PID:4460][07/21/2014 14:11:11] :System.InvalidOperationException\r\nThere is an error in XML document (1, 1).\r\n at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
    I removed the reporting point no luck -> I already installed report builder 3.0 local on my computer still no luck.
    I hope someone can give me some advice , I am lost with this error
    Thx in advance
    Regards
    Johan

    Hi Miss Katherine,
    1. I went through the SQL steps in the link you posted
    2. I updated the Reg Key and Microsoft.ConfigurationManagement.exe.config file with 3.0 on both the
    server and the console machine.
    3. I copied the .DLL file from your OneDrive and replaced the existing one on the server.
    4. I uninstalled and re-installed the reporting role on the server and received the 1015 in the log.
    5. I restarted the server and the client machine
    I do get a slightly different error now after using the new DLL
    Errors With Original DLL
    ERROR DETAILS
    * [9/30/2014 8:42:03 AM] System.Deployment.Application.InvalidDeploymentException (HashValidation)
    - File, Microsoft.DataWarehouse.dll, has a different computed hash than specified in manifest.
    - Source: System.DeploymentERROR DETAILS
    Errors With New DLL
    ERROR DETAILS
    Following errors were detected during this operation.
    * [9/30/2014 9:17:13 AM] System.Deployment.Application.InvalidDeploymentException (RefDefValidation)
    - Reference in the manifest does not match the identity of the downloaded assembly Microsoft.DataWarehouse.dll.
    - Source: System.Deployment

  • Samba autorisation problem (with xp computer)

    Hello,
    I just swith my server (mac pro) from a 10.4.10 to a 10.5.1 server.
    I'm new to server computing, so i stick to the standart configuration.
    I'm expercing big sharing problems. I have the afp crash bug, but i'm also experiencing loads of autorisation problem with the xp clients.
    I first experienced problem with windows authentification , windows side(i set up an account for each PC), so i tranform every share point from guest read only to guest read/write (apple+i on the folder, then i change the authorisation). But i experience loads of autorisation.
    I finally fix the windows authentification problem, but it get worse:
    Every PC trying to make a new folder can't name it. He still have autorisation, he can delete it, an make named folder in it.
    Plus a lot of autorisation oddities, the autorisation don't seem to propagate properly.
    I tried to swith to the advanced configuration, but i always completly screwed up the server after one or two hours.
    Thanks!
    Sébastien
    (please excuse my english).

    You have the exact same problem as described here:
    http://discussions.apple.com/thread.jspa?threadID=1324515&tstart=0
    Several of us have noticed it, especially with Windows XP Home. I've filed a bug report with Apple, and would encourage you to do so as well.
    Please follow the above link - I have a workaround that might suit your case, as well as instructions for filing the bug report.
    --Gerrit

  • WWI server problem with report shipping order

    Hi everybody,
    we have a problem with the WWI server and report shipping orders for Inbound documents (PDF):
    after we created an entry in CVD1 and using buttons "Accept" and "Ship immediately" we run the report RCVDEVEN. First time we did it the WWI server started working and ended with error but assigned the correct PDF. After that, the WWI server didt start anyway.
    First error message:
    The description for Event ID ( 91 ) in Source ( PRD ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: PRD.
    Second error message after second attempt:
    The description for Event ID ( 95 ) in Source ( PRD ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event:   09/14/09 17:59:49 Start Function 'WWI_SERVER_INFO'
      Initializing parameters
      Initializing Tables
      Receiving data from client
      Sending data to client
    Elapsed time : 0.1 sec.
    OSS note 1058521 has already been found - but nothing described here is relevant for us: the RFC connection is working, the WWI monitor shows the server up and running.
    Any ideas?
    Thank you very much in advance and best regards,
    Christoph

    Hi folks,
    fixed the problem myself. There have been some documents with error in the printer queue of the WWI server.
    Best regards,
    Christoph

  • I am having a DNS problem with my computer. My laptop connects to the internet and my skype works normally but when i try to surf the web it says "DNS Look up failed".

    MY PROBLEM
    I am having a DNS problem with my laptop. It connects normally to th e wifi internet but when i try to surf the net it says "DNS Look up failed"
    This problem only occurs when with the internet at my house. whenever i connect elsewhere my computer works normally. My ipod, iphone, tablet and other friends computers work normally when they are connected to my internet. i use dmy neigbours nework a couple of times from my house and it wrks normally.
    Also when i turn my laptop on or off i can browse for a few minutes or seconds before it fails again. My skype works like there is no problem
    WHAT I HAVE TRIED TO RESOLVE IT
    I have tried changing the DNS, i used open DNS and google free DNS and it still didnt make a difference.
    I have rebooted router many times, nothing
    I have changed my home router, nothing
    I backed up my computer, resored everything it to factory setting and put everything back on; still nothing
    Run a diagnostics at 'Best buy' and they say nothing is wrong; but i know there is something wrong with the DNS
    I have tried different "sudo" type of codes on my comupter from stuff i got online and nothign has proved fruitful yet.
    i tried using safari, Google chrome and firefox, all not loading
    WHAT DO I DO TO FIX THIS?

    You are correct.  Syncing should transfer any purchased media, including videos, from your device to your iTunes library provided your computer is authorized for the Apple ID used to make these purchases.  You mentioned that you have uninstalled iTunes before, but if you didn't follow this guide exactly, uninstalling iTunes and all of its components in the order specified, it may not have been successful so you should try again:  Windows XP or Windows Vista/7.

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

  • VAT declaration in XML - Problem with report RFASLDPC

    Hello all,
    I have a problem with the report RFASLDPC. We use it to download an XML file that we generated which contains the VAT declaration.
    In the report RFASDLPC, there is a FORM named QUELLFILE_PRUEFEN which stop the report and display a message : "Data file FILE_NAME is not correct".
    The reason is that QUELLFILE_PRUEFEN checks (for Belgium) that the beginning of my document starts with '000000' (six times zero). But this is impossible for an XML file to begin with '000000'. An XML file must begin with "<?xml version="1.0" ?>" or a least "<".
    Here is the code :
    FORM QUELLFILE_PRUEFEN.
      OPEN DATASET PAR_PATH FOR INPUT IN BINARY MODE.
      IF SY-SUBRC NE 0.
        MESSAGE E306 WITH PAR_PATH.        ''Quellfile nicht vorhanden
      ENDIF.
      READ DATASET PAR_PATH INTO HLP_RECORD.
      CASE PAR_FTYP.
        WHEN 'AT'.                         ''ASL Österreich
          IF HLP_RECORD(1) NE 'I' OR HLP_RECORD+46(2) NE 'ZM'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        WHEN 'BE'.                         ''ASL Belgien
          IF HLP_RECORD(6) NE '000000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        WHEN 'ES'.                         ''ASL Spanien
    *     IF HLP_RECORD(1) NE '1' OR HLP_RECORD+104(3) NE '349'.
          IF HLP_RECORD(1) NE '1' OR HLP_RECORD+1(3) NE '349'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
        when 'FI'.
          if hlp_record(3) ne '000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
      ENDCASE.
      CLOSE DATASET PAR_PATH.
    The line :
    READ DATASET PAR_PATH INTO HLP_RECORD.
    Put the 128 first character of the XML file in HLP_RECORD because HLP_RECORD is defined as :
    HLP_RECORD(128) TYPE C
    So as I work in Belgium, it is the condition :
    WHEN 'BE'.                         ''ASL Belgien
          IF HLP_RECORD(6) NE '000000'.
            MESSAGE A185(FR) WITH PAR_PATH.
          ENDIF.
    which is checked. But this condition cleary check if the beginning of the XML is '000000' and if it is not, it stop the program.
    I searched for all the SAP notes about RFASLDPC but I found none about this problem.
    Did someone else have also this problem ? Did you find a way to solve this ?
    Thank you in advance for your help.
    Best Regards.
    Gregory Pierre.

    anyone has an idea ? ...

  • Problems With Reports server in Oracle 10g IAS

    I am having problems with the reports server. It keeps on giving me the error below
    REP-51002: Bind to Reports Server <myreportservername> failed
    I am able to correct it by restarting my server while my backup server is off the network and playing around with my server configurations. It works for a while 2 weeks to a month then I start getting the same error again.
    Could someone please point out to me where I could be going wrong?
    Is there any known problems when 2 IAS are on the same network. I am on Windows 2000 Server.
    Thanks
    Irene

    In rwnetwork.conf change
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE discoveryService SYSTEM "file:/home/oas10g/frhome/reports/dtd/rwnetworkconf.dtd">
    <discoveryService>
    <!--multicast channel="228.5.6.7" port="14021" timeout="1000" retry="3"/>-->
    <namingService name="Cos" host="IP of ur Server" port="14021"/>
    </discoveryService>
    bounce OC4J_BI_Forms
    run naming service.sh 14021

  • PFD-MAIL Problem with REPORTS 3.0.5

    Hi all!
    Still have a problem with creating a PDF file as mail attachement.
    I installed the latest patch 11 (3.0.5.19) of the oracle runtime and i compiled
    the report with the patch.
    What happend: Still go the error message if i open the pdf in the mail: "operant xc missing ..."
    BUT !! if I create the pdf with the option "FILE" instead of "MAIL" at e.g. c:\test.pdf - its
    without any error!
    So the question is what is the difference beetween the two ways?????
    Have a nice weekend!
    Oli

    Hi all!
    Still have a problem with creating a PDF file as mail attachement.
    I installed the latest patch 11 (3.0.5.19) of the oracle runtime and i compiled
    the report with the patch.
    What happend: Still go the error message if i open the pdf in the mail: "operant xc missing ..."
    BUT !! if I create the pdf with the option "FILE" instead of "MAIL" at e.g. c:\test.pdf - its
    without any error!
    So the question is what is the difference beetween the two ways?????
    Have a nice weekend!
    Oli

Maybe you are looking for

  • Trouble installing and uninstalling Flash Player for Mac 10.4.11

    Hello, I have a Macbook Intel Core Duo Version 10.4.11 I am running Firefox 3.6.13 The problem is when I download the new version of Flash and I go to press the install button, it does nothing. I have tried to uninstall my old version of Flash which

  • Configuring Level3 SIP trunk with Lync 2013

    Hi, I ran into some issues trying to configure SIP trunk from Level 3 and I was hoping someone here can help. We have our mediation server collocated with FE and SIP traffic goes from public IP, port 5060 via NAT, to local IP on FE, port 5060. Level

  • Running Elements Mac on 2 screens

    I'm learning Photoshop Elements 6 on Mac OSX. Everything is basically OK but I need to ask these 2 questios: I have 2 monitors and have Elements open on 1 and a tuition video on the second. Everytime I click on the video to play a bit more, photoshop

  • Transaction i 4.6C

    Dear guru's in the old days - before the functionality was moved in ECC5/ECC6 to liquidity planner - was there a functionality in SAP 4.6C  called cash budget management where it was possible to made simple liquidity forecast (TA FF7A and FF7B). The

  • Xorg doesn't start or maybe freeze

    hello all.. i just fresh install arch today, install x and nvidia. but i failed see it running here is my logs xorg.0.log [ 235.760] X.Org X Server 1.10.2 Release Date: 2011-05-28 [ 235.761] X Protocol Version 11, Revision 0 [ 235.761] Build Operatin