Best way of approving invoices within the SAP system for payment

Hello Guru,
In the past, my client used to send invoices from the unmatched report to the appropriate department head for approval.  This approval was recorded in the notes which stayed with the invoice and it would automatically assigned ID and date and time to the note.  There for awhile this process did not work (due to personnel changes and software upgrades) and we would print the invoice have them sign the paper copy.
Now  my client have the software on all necessary computers, so they want to use the electronic approvals again.  My client can’t send the invoices to the department head as a ‘send reference’ to keep the approval with the invoice.  However, they can send the invoice as ‘send document’ which creates a separate attachment called "note.txt" but I can’t see where it is maintained with the invoice.   
Please advise on the method to be using because my client  would prefer to use the "send reference" they have been using before the upgrades?
Thank you.

Hello!
You can use standard Release for Payment Functionality. This functionality can be configured as part of accounts payable configuration. Main configuration steps are as follows:
-  create workflow varian for release for payment (OBWA); you can also use standard SAP workflow variants;
- assign company code to workflow variants;
- define release approval groups for release of payment (OBWB);
- define release approval paths for release for payment (OBWC);
- assign release approval paths for release for payment (OBWD);
- assign release approval procedure for release for payment (OBWE);
- define relevant document types for release for payment (OBWQ);
- define users with authorization for payment release (OBWP);
- define payment block reasons for payment release (OB27).
I think these are more or less the main steps. More can be found in the configuration documentation;
Please also check this guide - Payment Release Process - ERP Financials - SCN Wiki;
Hope, it will help!
Best wishes,
The Wirtschaftsmann

Similar Messages

  • What is the best way to upload invoices to A.R.?

    Hi! I would like to ask what is the best way in uploading invoices to A.R. from other system. Autoinvoice? Invoice Creation API? or Transaction API? I need your suggestions.  Kindly specify also the pros and cons and any other suggestions that you can give and also please point me to some reading materials.
    thanks.
    Jon

    I've been looking for several days at examples of using a
    flash file uploader. I was after single or multiple file uploads, a
    progress bar and the ability to add "vanilla" form fields. The most
    promising I found was the YUI uploader from those nice people at
    Yahoo
    http://developer.yahoo.com/yui/examples/uploader/u...
    I got it working fine submitting to a simple CF page
    <cfif structkeyexists(form,"Filedata")>
    <cffile action="UPLOAD" filefield="Filedata"
    destination="#expandpath(".")#" nameconflict="OVERWRITE">
    </cfif>
    <cfif structkeyexists(form,"var1") and
    structkeyexists(form,"var2")>
    <cffile action = "append" file =
    "#expandpath(".")#\log.txt" output = "var1 = #var1# var2 =
    #var2#">
    </cfif>
    I'm a complete novice with Javascript, PHP, flash in fact
    anything other than CF, so there's a bit I don't understand (well
    several ... but this one in particular!)
    On the example in the YUI documentation they say they are
    using this PHP scrip to handle server side
    1 <?php
    2 foreach ($_FILES as $fieldName => $file) {
    3 move_uploaded_file($file['tmp_name'], "./" .
    $file['name']);
    4 echo (" ");
    5 } ?>
    The echo bit seems to "bounce back" the post data which is
    then picked up by the onuploadresponse(event). In CF how would I
    pass back some response to the calling page to fire this
    event?

  • View remarks of an approver directly within the "Messages / Alerts" window.

    Hi,
    Here is a need from some customers.  It makes snes to ask for this functionality... It works from one side (requestor side) but not for the other (approver side)...  Could this enhancement be implemented in future patches / versions ?
    Thanks,
    Luce
    Version: 2005-SP1-PL36
    Description of requirements (Please provide a detailed description) :
    Be able to view the remarks of an approver directly within the u201CMessages / alertsu201D overview.  Identical behavior as it is for the approver when he receives a request for approval.
    Valid as of Date that this legal requirement is applicable) :
    Business needs (Please describe the impact on your business, if the functionality is not realized):
    With no view of the remarks coming from the approver, we can miss important information from the approver. ..  And to have to open a u201Cdecision report u201C in order to view the remarks that the approver has written, that makes no sense and in addition, Itu2019s time consuming ! 
    Examples (Please describe a typical example, how the functionality should work):
    Sophie wants to create a sales order, but she needs an approval to do it.  So, when pressing the u201CAddu201D button in the Sales order window, the system launches the approval process.  She writes in the REMARKS field u201CNeed your approval ASAP pleaseu201D.
    Bill will be the approver of the sales order, so he receives the request for document approval in his u201CMessages / Alerts overviewu201D window. 
    Bill clicks on the u201CRequest for document approvalu201D in the u201CMessages / Alerts Overviewu201D window.  By doing that, he sees in the middle part of the u201CMessages / Alerts Overviewu201D window that Sophie wrote a remark as this :`u201CNeed your approval ASAP pleaseu201D.   By knowing this, Bill will open the approval window and will take his decision immediately.
    He writes a remark to Sophie as this : u201CPlease, donu2019t create any sales order for this customer before next week because we donu2019t know if they will pay us soon enoughu201D, he selects u201CApproveu201D and sends his approval to Sophie.
    Sophie can see that Bill has approved her sales order in the u201CMessages / Alerts Overviewu201D window. 
    By clicking on the u201CDocument generation approvedu201D, Sophie can see very quickly, in the middle part of the u201CMessages / Alerts Overviewu201D window, that Bill gave her the instruction to avoid sales order creation for this customer in the upcoming week.  So she wonu2019t try to create any sales order anymore for this partner.
    Current Workaround (Please describe the workarounds you are using at the moment):
    Open the u201CApproval decision reportu201D and filter to find the appropriate document approval, in order to view the remarks of the approver.   This is a big time consumingu2026
    Proposed solution (Please suggest how the new functionality should work):
    Itu2019s simple !!  Why couldnu2019t you just simply standardize the way things work and do as it works for the approver side ?  The approver can see / read the remarks coming from the requestor in the u201CMessages / Alerts overviewu201D window !   It would be so easy to do the same thing on requestor side !  It would be nice to be able to see / read the remarks coming from the approver in the u201CMessages / Alerts overviewu201D window !

    I don't know if someone will take care of this... And I have to close a question since I want to post a new thread... So I have no choice, I must close one of my questions...

  • Interacrive forms within the SAP GUI

    Hello
    I want to work with interactive forms within the SAP GUI, with ABAP.
    I've managed to display a generated PDF in an ABAP screen, with CL_GUI_HTML_VIEWER, using the method LOAD_DATA. The problem now is getting the filled data out of the form. Is there any standard way of doing it? (getting the data without saving the file)
    I've thought of some ways, such as getting the filled file somehow as a binary file, or handling the document's Submit button, but I haven't managed to get any of them to work.
    Is there any way to make it work, or use the different PDF classes to do it..
    Thanks

    Hello
    I want to work with interactive forms within the SAP GUI, with ABAP.
    I've managed to display a generated PDF in an ABAP screen, with CL_GUI_HTML_VIEWER, using the method LOAD_DATA. The problem now is getting the filled data out of the form. Is there any standard way of doing it? (getting the data without saving the file)
    I've thought of some ways, such as getting the filled file somehow as a binary file, or handling the document's Submit button, but I haven't managed to get any of them to work.
    Is there any way to make it work, or use the different PDF classes to do it..
    Thanks

  • Workflows within the SAP environment

    Hello,
    for my diploma i'm evaluating the different workflow technologies within the sap environment. Therefor i set up a list with the different technologies and want to know if i'm missing something.
    1) ALE
    2) MDM Workflow
    3) Business Workflow aka Adhoc Workflow
        (CRM Workflow, SCM Workflow are synonym to the Business Workflow)
    4) SAP Webflow aka SAP Workflow
        (kind of a successor of Business Workflow)
    5) Guided Procedures
    6) Business Process Engine aka ccBPM
    Are these the most used Workflows within the SAP environment or is something missing?
    And what is the difference between <i>SAP Business Workflow</i> and <i>SAP Webflow</i>? Some source say these two are nearly the same, except the "web-capability" of Webflow...
    btw: Sorry for posting this question in the Coffee Corner but its a farreaching area and i dont know which other forum it would fit better...
    thx for replys
    Matthias

    Matthias -
    Please be assured that there was no irony or sarcasm intended - if you can complete the evaluation task that you have set for yourself, it will not only be a wonderful achievement but also something that I'm sure many here would want to read and comment on.
    The one thing to keep in mind - perhaps the most important thing - is that technological alternatives are never pursued rationally.  Rather, they are generally pursued for the worst of reasons - someone's opinion of where "the market" is going at any given point in time.
    So unless you can get an SAP "insider" to explain to you why SAP's workflow alternatives developed the way they did, you will not really have a complete picture.
    Of course, it's also true that sometimes good things can happen for the worst of reasons, so perhaps the "inside" history of workflow at SAP is irrelevant.
    The reason I'm going on about this is because I still don't think "the powers that be" at Walldorf have realized yet that the way to get pre-NW clients to NW200nx (NWDS, WDA, WDJ, GP, VC) is to get them to use regular old workflow first.
    There is <i><b>nothing</b></i> in NWDS, WDA, WDJ, GP, and VC that can't be done in a pre-NW environment using a combination of user exits, BAdI's, BAPI's, and workflows.
    And if SAP customers were to start using these older techniques to implement "integrated" and "process-driven" applications, then they would get into a "state-of-mind" that would make them much more confident of their ability to handle NW techniques, and much more aware of the benefits resuling therefrom.
    As the old saying goes -
    <i><b>you've got to take folks from what they know to what they don't</b></i>
    i.e. you can't simply "shock and awe" customers into what you want them to start using.
    Sorry to go on like this, but all these matters are tied up in the project you are about to undertake ...
    Regards
    djh

  • There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    There are way too many photos on my internal hard drive. I have older libraries, and newer libraires in iPhoto and Aperture 2.  What is the best way to find and reduce the number of duplicate photos/libraries  before upgrading to Aperture 3?

    Sharon-
    Good idea.
    Back up first.
    I would probably wait for the merge function of the latest version before merging. Be sure to verify every merge.
    Merge Libraries, then from within Aperture move images to referenced on external hard drives.
    HTH
    -Allen

  • What's the best way to back up to the cloud?

    I am going to be traveling in the on a boat in Europe. Access to wifi could be limited and slow. I want to back up my photos and catalog to the cloud as there is potental to lose laptop and external drive. Since I have a 25 mp camera and will be shooting in Raw allot, there will be some big files as each photo could be around 27 gb.
    All of my files will be in the My pictures folder LR set up when I set up my new catalog. I planned to back up these folders to the cloud, then send just the new folders each time I add them to LR during import. Then I was going to have the catalog BK that is created each time you close LR  (just the data only is in this file) sent to the cloud as well.
    Then if my laptop is lost I can copy the back up catalog (just the data file) and the My Pictures file that has all my photos in folders to a new laptop and restore my catalog. I'm told by Adobe help that this won't work as the connection between the photos and the catalog back up will be lost.
    Is this correct? And if so, what's a better method.

    Thanks Jim, and yes I meant 27 mb.  Will be living on a sail boat so there is potential to lose both the laptop and external drive. The cloud was to be my 3rd copy
    Date: Fri, 20 Dec 2013 16:53:44 -0800
    From: [email protected]
    To: [email protected]
    Subject: What's the best way to back up to the cloud?
        Re: What's the best way to back up to the cloud?
        created by JimHess in Photoshop Lightroom - View the full discussion
    You really have images that are 27 GB each? I suspect you meant 27 MB. But, even then, I think cloud backup might be cumbersome. I would suggest carrying a small external hard drive. I have a 1 TB USB 3 drive that is really fast and very small. No external power supply. Plug it in, and copy the files. That's what I would do.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5948781#5948781
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5948781#5948781
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5948781#5948781. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop Lightroom at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • HT1364 I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    I just bought a new PC and now have ample space on my C drive to house my music Library which is currenlty installed on a external drive.  What is the best way to install and move the itunes library to my C Drive?

    If the entire library is on the external drive then simply copy the iTunes folder into <User's Music> on the new computer, then install iTunes. If you've already installed iTunes you will want to remove the empty iTunes folder in <User's Music> first.
    If it turns out you only have the media folder on the external drive then take a look at this post...
    tt2

  • I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.

    I have a 15' Macbook Pro, mid 2010 running Mavericks. I want to upgrade the hardware by increasing the RAM to 8GB and replacing the HD for a SDD one. What would be the best way to install mavericks on the new HD? I have the original OS X CD.
    From what I read, I have 2 choices: 1. to install OSX and then upgrade to Mavericks, but I'm not sure if this would be possible (to upgrade directly from OSX to Mavericks); and 2. to use a software called Super Duper.
    I wouldn't like to have to use a third party software to do this, so the question is: is there a better way to install directly the Mavericks not having to use a third party software?

    Install the new drive in the computer.
    Install the old drive in an external USB or Firewire enclosure.
    Boot the computer from the Recovery HD on the external drive.
    Use Disk Utility to partition and format the new internal drive.
    Clone your external drive to the internal drive.
    How to replace or upgrade a drive in a laptop
    Step One: Repair the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Step Two: Remove the old drive and install the new drive.  Place the old drive in an external USB enclosure.  You can buy one at OWC who is also a good vendor for drives.
    Step Three: Boot from the Recovery HD on the external drive.  Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the Recovery HD then click on the downward pointing arrow button.
    Step Four: New Hard Drive Preparation
      1. Open Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your new hard drive (this is the entry with the
          mfgr.'s ID and size) from the left side list. Note the SMART status of
          the drive in DU's status area.  If it does not say "Verified" then the drive
          is failing or has failed and will need replacing.  Otherwise, click on the
          Partition tab in the DU main window.
      3. Under the Volume Scheme heading set the number of partitions from
          the drop down menu to one. Set the format type to Mac OS Extended
          (Journaled.) Click on the Options button, set the partition scheme to
          GUID  then click on the OK button. Click on the Partition button and
          wait until the process has completed.
      4. Select the volume you just created (this is the sub-entry under the
          drive entry) from the left side list. Click on the Erase tab in the DU main
          window.
      5. Set the format type to Mac OS Extended (Journaled.) Click on the
          Options button, check the button for Zero Data and click on OK to
          return to the Erase window.
      6. Click on the Erase button. The format process can take up to several
          hours depending upon the drive size.
    Step Five: Clone the old drive to the new drive
      1. Using Disk Utility still opened.
      2. Select the destination volume from the left side list.
      3. Click on the Restore tab in the DU main window.
      4. Check the box labeled Erase destination.
      5. Select the destination volume from the left side list and drag it to the
          Destination entry field.
      6. Select the source volume from the left side list and drag it to the
          Source entry field.
      7. Double-check you got it right, then click on the Restore button.
    Destination means the new internal drive. Source means the old external drive.
    Step Six: Open the Startup Disk preferences and select the new internal volume.  Click on the Restart button.  You should boot from the new drive.  Eject the external drive and disconnect it from the computer.

  • What is the best way to get a tune created in GB for iPad into iMovie for iPad?

    What is the best way to get a tune created in GB for iPad into iMovie for iPad?

    Haven't done it myself, but seems like the correct workflow would be:
    From GarageBand (iOS), My Songs -> select song -> Send to iTunes
    From iMovie HD (iOS), My Project -> Insert Media -> select by song name
    I'm not sure if GB creates its own playlist for tagging exported songs in your iTunes library so selecting by name would be the next-best method.
    Have you tried this?

  • What is the best way to take care of the battery?

    What is the best way to charge and use the battery so it lasts the longest over time? Does wall charger versus USB make a difference? Does topping off versus draining make a difference?
    Thanks!

    My understanding is to charge the battery as soon as you're able to, without letting it drain completely and or often.
    With my digital SLR cameras, it's recommended by engineers that have studied Lithium-ion battery charging to not allow them to drain...or not allow them to fall below 50% capacity. If you charge them when you're able to, you'll extend the life of the battery. I see these results first hand.
    Funny, my sister uses the blackberry type 'smartphones' and she ALWAYS has battery issues. She runs down the battery, then plugs them in for a short time to get a 'quick charge', then proceeds to run the battery down again.
    Next thing you know, her phone won't last the day or half day on a charge.
    So maybe there is something to recharging as soon as you can and not allowing the battery to die on you.

  • What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

    What is the best way to query planned orders or work orders for make items and identify the buy component that is short for supply and vice versa?

  • I finally was successful in burning a CD of a slideshow I created in iPhoto, however, it is blurry. What is the best way to burn to a CD or DVD for clarity. Also, I realize if burned in iPhoto it will only be playable in iPhoto. Help! This is needed soon!

    I finally was successful in burning a CD of a slideshow I created in iPhoto, however, it is blurry. What is the best way to burn to a CD or DVD for clarity. Also, I realize if burned in iPhoto it will only be playable in iPhoto. Help! This is needed soon for a wedding reception!

    What version of iPhoto are you using?  How do you plan to view the slideshow at the wedding reception, on a TV screen?  If so then you will need to send the slideshow to iDVD and burn a disk from there.
    If you're in iPhoto 11 and the slideshow was created in the slideshow mode and not from an album, then go to the Share menu and select iDVD.  That will create a QT movie of the slideshow and import it into iDVD.
    In iDVD select your theme and setup the menu as you'd like.  If you want the movie to begin plahying immediately when the disk is inserted into the DVD player go into the Gallery mode and drag the movie into the Autostart  bin at the left.
    Click to view full size
    If you want the movie to loop continuously go to the Advanced menu and select Loop.
    Click to view full size
    When you're finished setting upb the iDVD project save it as a disk image via the File ➙ Save as Disk Image menu option. This will allow you to check it with DVD Player before tryingto burn to disk.  Mount the disk imnage by double clicking on it and launch DVD Player and play.  If the movie plays as you want and everything is good you can  burn to disk with Disk Utility at the slowest speed available to assure the best burn quality.  Always use top quality media:  Verbatium, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    OT

  • The best way i can re write the script ??

    What is the best way that i can rewrite the below query.,
    SELECT 'Brought Forward' AS groupName , End_Status
    ,SUM(Emergency) AS Emergency
    ,SUM(High) AS High
    ,SUM(Medium) AS Medium
    ,SUM(Low) AS Low
    ,SUM(Total) as Total
    FROM
    (     SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
    SELECT P.CALL_ID,MAX(P.Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS P , LCC.VHD_CALLSTATUS R
    WHERE R.STATUS IN (2,14)
    AND P.STATUS IN (0,1,4,7,11,12)
    AND R.UPDUSERID <> 'system'
    AND P.CALL_ID <> R.CALL_ID
    AND TRUNC(P.Status_Date) < '21-May-2008'
    GROUP BY P.Call_ID
    ) Z
         WHERE Y.Call_Id = Z.Call_id
    AND Y.Status_Date = Z.Status_Date) B
         UNION
         SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
    SELECT P.CALL_ID,MAX(P.Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE P , LCC.VHD_CALLSTATUS_ARCHIVE R
    WHERE R.STATUS IN (2,14)
    AND P.STATUS IN (0,1,4,7,11,12)
    AND R.UPDUSERID <> 'system'
    AND P.CALL_ID <> R.CALL_ID
    AND TRUNC(P.Status_Date) < '21-May-2008'
    GROUP BY P.Call_ID
    ) Z
         WHERE Y.Call_Id = Z.Call_id
    AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' )
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
    FROM      LCC.VIEW_VHD_CALLDESK_MASTER A,
              (SELECT CALL_ID, STATUS_DATE FROM
                   SELECT CALL_ID, MIN(STATUS_DATE) AS STATUS_DATE FROM LCC.VHD_CALLSTATUS WHERE CALL_ID IN
                   (SELECT CALL_ID FROM LCC.VIEW_VHD_CALLDESK_MASTER WHERE TRUNC(ENTRY_DATE) < '21-May-2008' )
                   GROUP BY CALL_ID)
              WHERE TRUNC(STATUS_DATE) >= '21-May-2008'
              ) B
         WHERE A.CALL_ID = B.CALL_ID
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VIEW_VHD_CALLDESK_MASTER A,
              (SELECT CALL_ID, STATUS_DATE FROM
                   SELECT CALL_ID, MIN(STATUS_DATE) AS STATUS_DATE FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE CALL_ID IN
                   (SELECT CALL_ID FROM LCC.VIEW_VHD_CALLDESK_MASTER WHERE TRUNC(ENTRY_DATE) < '21-May-2008' )
                   GROUP BY CALL_ID)
              WHERE TRUNC(STATUS_DATE) >= '21-Jan-2008'
              ) B
         WHERE A.CALL_ID = B.CALL_ID
         UNION
         SELECT A.CALL_ID
         ,CASE WHEN TRUNC(ENTRY_DATE) IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VIEW_VHD_CALLDESK_MASTER A
         WHERE TRUNC(ENTRY_DATE) < '21-May-2008'
         AND A.CALL_ID NOT IN
         (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(STATUS_DATE) >='21-May-2008' UNION
         SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(STATUS_DATE)>='21-May-2008' )
         AND A.STATUS IS NULL
         UNION
         SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT DISTINCT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,2,4,7,11,12,14) and upduserid <> 'system'
         AND CALL_ID IN
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE STATUS=1 AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
              INTERSECT
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE STATUS In (2,14) AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' and a.status not in (2,14) and a.upduserid <> 'system')
    UNION
    SELECT a.call_id
         ,CASE WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (4,12) THEN 'Resolved'
              WHEN (NVL(B.STATUS, NVL(A.STATUS,0))) IN (0,1,11,7) THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
    ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT Y.Call_Id,Y.Status
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,2,4,7,11,12,14) and upduserid <> 'system'
         AND CALL_ID IN
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE STATUS=1 AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
              INTERSECT
              SELECT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE STATUS in (2,14) AND TRUNC(STATUS_DATE) < '21-May-2008' and upduserid <> 'system'
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date) B
         WHERE (A.CALL_ID = B.CALL_ID AND TRUNC(A.ENTRY_DATE) < '21-May-2008' and a.status not in (2,14))
         UNION
         SELECT a.call_id
         ,CASE WHEN ENTRY_DATE IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK A,
         (SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12,13)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(Status_Date) < '21-May-2008' AND Status In (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date
         MINUS
         SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS
         WHERE TRUNC(Status_Date) <'21-May-2008' AND Status IN (0,1,4,7,11,12)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date)B
         WHERE A.CALL_ID = B.CALL_ID
    UNION
         SELECT a.call_id
         ,CASE WHEN ENTRY_DATE IS NOT NULL THEN 'Open Items'
              END AS End_Status
         ,(CASE WHEN Priority = 0 THEN 1 ELSE 0 END) AS Emergency
         ,(CASE WHEN Priority = 1 THEN 1 ELSE 0 END) AS High
         ,(CASE WHEN Priority = 2 THEN 1 ELSE 0 END) AS Medium
         ,(CASE WHEN Priority = 3 THEN 1 ELSE 0 END) AS Low
         ,(CASE WHEN priority = 0 OR priority = 1 OR priority = 2 OR priority = 3 THEN 1 ELSE 0 END) Total
         FROM LCC.VHD_CALLDESK_ARCHIVE A,
         (SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12,13)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date
         MINUS
         SELECT Y.Call_Id
         FROM LCC.VHD_CALLSTATUS_ARCHIVE Y,
         (SELECT CALL_ID,MAX(Status_Date) as Status_Date
         FROM LCC.VHD_CALLSTATUS_ARCHIVE
         WHERE TRUNC(Status_Date) < '21-May-2008' AND Status IN (0,1,4,7,11,12)
         AND CALL_ID NOT IN (SELECT DISTINCT CALL_ID FROM LCC.VHD_CALLSTATUS_ARCHIVE WHERE TRUNC(Status_Date) < '21-May-2008' AND Status in (2,14) and upduserid <> 'system')
         GROUP BY Call_ID) Z
         WHERE Y.Call_Id = Z.Call_id AND Y.Status_Date = Z.Status_Date)B
         WHERE A.CALL_ID = B.CALL_ID
    WHERE End_Status IS NOT NULL
    group by End_Status
    rk

    What is the best way that i can rewrite the below query.,
    SELECT   'Brought Forward' AS groupname, end_status, SUM (emergency) AS emergency,
             SUM (high)
                   AS high, SUM (medium) AS medium, SUM (low) AS low,
             SUM (total)
                   AS total
        FROM (SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus y,
                                      (SELECT   p.call_id,
                                                MAX (p.status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus p,
                                                lcc.vhd_callstatus r
                                          WHERE r.status IN (2, 14)
                                            AND p.status IN (0, 1, 4, 7, 11, 12)
                                            AND r.upduserid <> 'system'
                                            AND p.call_id <> r.call_id
                                            AND TRUNC (p.status_date) <
                                                                     '21-May-2008'
                                       GROUP BY p.call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus y,
                                      (SELECT   p.call_id,
                                                MAX (p.status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus_archive p,
                                                lcc.vhd_callstatus_archive r
                                          WHERE r.status IN (2, 14)
                                            AND p.status IN (0, 1, 4, 7, 11, 12)
                                            AND r.upduserid <> 'system'
                                            AND p.call_id <> r.call_id
                                            AND TRUNC (p.status_date) <
                                                                     '21-May-2008'
                                       GROUP BY p.call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
               WHERE (a.call_id = b.call_id AND TRUNC (a.entry_date) <
                                                                     '21-May-2008'
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a,
                     (SELECT call_id, status_date
                        FROM (SELECT   call_id, MIN (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE call_id IN (
                                            SELECT call_id
                                              FROM lcc.view_vhd_calldesk_master
                                             WHERE TRUNC (entry_date) <
                                                                     '21-May-2008')
                              GROUP BY call_id)
                       WHERE TRUNC (status_date) >= '21-May-2008') b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a,
                     (SELECT call_id, status_date
                        FROM (SELECT   call_id, MIN (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE call_id IN (
                                            SELECT call_id
                                              FROM lcc.view_vhd_calldesk_master
                                             WHERE TRUNC (entry_date) <
                                                                     '21-May-2008')
                              GROUP BY call_id)
                       WHERE TRUNC (status_date) >= '21-Jan-2008') b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN TRUNC (entry_date) IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.view_vhd_calldesk_master a
               WHERE TRUNC (entry_date) < '21-May-2008'
                 AND a.call_id NOT IN (SELECT DISTINCT call_id
                                                  FROM lcc.vhd_callstatus
                                                 WHERE TRUNC (status_date) >=
                                                                     '21-May-2008'
                                       UNION
                                       SELECT DISTINCT call_id
                                                  FROM lcc.vhd_callstatus_archive
                                                 WHERE TRUNC (status_date) >=
                                                                     '21-May-2008')
                 AND a.status IS NULL
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT DISTINCT y.call_id, y.status
                                 FROM lcc.vhd_callstatus_archive y,
                                      (SELECT   call_id,
                                                MAX (status_date)
                                                      AS status_date
                                           FROM lcc.vhd_callstatus_archive
                                          WHERE TRUNC (status_date) < '21-May-2008'
                                            AND status IN
                                                      (0, 1, 2, 4, 7, 11, 12, 14)
                                            AND upduserid <> 'system'
                                            AND call_id IN (
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE status = 1
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system'
                                                   INTERSECT
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE status IN (2, 14)
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system')
                                       GROUP BY call_id) z
                                WHERE y.call_id = z.call_id
                                  AND y.status_date = z.status_date) b
               WHERE (    a.call_id = b.call_id
                      AND TRUNC (a.entry_date) < '21-May-2008'
                      AND a.status NOT IN (2, 14)
                      AND a.upduserid <> 'system'
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (4, 12) THEN 'Resolved'
                        WHEN (NVL (b.status, NVL (a.status, 0))) IN (0, 1, 11, 7) THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT y.call_id, y.status
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 2, 4, 7, 11, 12, 14)
                                   AND upduserid <> 'system'
                                   AND call_id IN (SELECT call_id
                                                     FROM lcc.vhd_callstatus
                                                    WHERE status = 1
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system'
                                                   INTERSECT
                                                   SELECT call_id
                                                     FROM lcc.vhd_callstatus
                                                    WHERE status IN (2, 14)
                                                      AND TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE (    a.call_id = b.call_id
                      AND TRUNC (a.entry_date) < '21-May-2008'
                      AND a.status NOT IN (2, 14)
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN entry_date IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk a,
                     (SELECT y.call_id
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12, 13)
                                   AND call_id NOT IN (SELECT DISTINCT call_id
                                                                  FROM lcc.vhd_callstatus
                                                                 WHERE TRUNC (
                                                                          status_date
                                                                       ) < '21-May-2008'
                                                                   AND status IN
                                                                          (2, 14)
                                                                   AND upduserid <>
                                                                          'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date
                      MINUS
                      SELECT y.call_id
                        FROM lcc.vhd_callstatus y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12)
                                   AND call_id NOT IN (SELECT DISTINCT call_id
                                                                  FROM lcc.vhd_callstatus
                                                                 WHERE TRUNC (
                                                                          status_date
                                                                       ) < '21-May-2008'
                                                                   AND status IN
                                                                          (2, 14)
                                                                   AND upduserid <>
                                                                          'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE a.call_id = b.call_id
              UNION
              SELECT a.call_id,
                     CASE
                        WHEN entry_date IS NOT NULL THEN 'Open Items'
                     END
                           AS end_status,
                     (CASE
                         WHEN priority = 0 THEN 1
                         ELSE 0
                      END
                           AS emergency,
                     (CASE
                         WHEN priority = 1 THEN 1
                         ELSE 0
                      END
                           AS high,
                     (CASE
                         WHEN priority = 2 THEN 1
                         ELSE 0
                      END
                     ) AS medium,
                     (CASE
                         WHEN priority = 3 THEN 1
                         ELSE 0
                      END
                     ) AS low,
                     (CASE
                         WHEN    priority = 0
                              OR priority = 1
                              OR priority = 2
                              OR priority = 3 THEN 1
                         ELSE 0
                      END
                     ) total
                FROM lcc.vhd_calldesk_archive a,
                     (SELECT y.call_id
                        FROM lcc.vhd_callstatus_archive y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12, 13)
                                   AND call_id NOT IN (
                                          SELECT DISTINCT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND status IN (2, 14)
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date
                      MINUS
                      SELECT y.call_id
                        FROM lcc.vhd_callstatus_archive y,
                             (SELECT   call_id, MAX (status_date) AS status_date
                                  FROM lcc.vhd_callstatus_archive
                                 WHERE TRUNC (status_date) < '21-May-2008'
                                   AND status IN (0, 1, 4, 7, 11, 12)
                                   AND call_id NOT IN (
                                          SELECT DISTINCT call_id
                                                     FROM lcc.vhd_callstatus_archive
                                                    WHERE TRUNC (status_date) <
                                                                     '21-May-2008'
                                                      AND status IN (2, 14)
                                                      AND upduserid <> 'system')
                              GROUP BY call_id) z
                       WHERE y.call_id = z.call_id AND y.status_date =
                                                                     z.status_date) b
               WHERE a.call_id = b.call_id)
       WHERE end_status IS NOT NULL
    GROUP BY end_status                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

  • I own CS4, upgraded to CS5, then joined CS6, CC... and now I installed CC14. Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues? I have an Alienware Area 51 PC running Windows 7.

    I own CS4, upgraded to CS5, then joined CS6, CC... and now I installed CC14. Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues? I have an Alienware Area 51 PC running Windows 7.

    Which will be the best way to delete or uninstall the programs I don't need keeping only CC14 without running into issues?
    There is none. Whatever you do to get rid of the older versions will inevitably do damage to shared components and other stuff of the new versions as well. That's just how it is with this approach... Uninstall the older versions, run the cleaner tool then reinstall CC 2014.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Mylenium

Maybe you are looking for