Prodecure update

Hi
this below code is written to update the prices
PROCEDURE upd_quot(p_quot_number number, p_quot_version number) is
     cursor c is select distinct aql.line_list_price, line_number
     from aso_quote_lines_all aql, aso_quote_headers_all aqh, qp_list_headers qlh, qp_list_lines_v qlv,
mtl_system_items msi
     where aqh.quote_header_id      = aql.quote_header_id
     and aqh.price_list_id                = qlh.list_header_id
     and aqh.price_list_id                = qlv.list_header_id
     and aql.inventory_item_id           = qlv.product_id
     and aql.inventory_item_id           = msi.inventory_item_id
     and qlv.product_id                = msi.inventory_item_id
     and aqh.quote_number           = p_quot_number
     and aqh.quote_version           = p_quot_version;
begin
     for i in c loop
          update aso_quote_lines_all set line_list_price = :upd_prices.line_list_price
     where inventory_item_id = :upd_prices.p_inventory_item_id;
update qp_list_lines set operand = :upd_prices.line_list_price where list_line_id = :upd_prices.p_line_list_id;
     :upd_prices.operand := :upd_prices.line_list_price;
     end loop;
end;
this procedure calling through button.
when i click update button it is updating only one line
like if thr are 4 rows then it has to update all the 4 rows, but it is doing one by one. i need some help in this issue.
example : price 1 price 2
410 450
250 210
120 99
357 467
it has to replace the price1 on price2 like
410 410
250 250
120 120
357 357
i need some help
Thanks and Regards

as Mr Wijk said I was a bit confused on what you were selecting
but perhaps a merge statement would be helpful in your scenario.
so your not doing a loop for your updates.
plagiarizing from SQL Cookbook by Anthony Molinaro
"You want to conditionally insert, update, or delete records depending on whether or not corresponding
records exist"
merge into aso_quote_lines t1
using ( select distinct blah blah blah) t2
on    (t1.id = t2.id and t1.price != t2.upd_price)
when  matched then
      update set t1.price = t2.upd_price

Similar Messages

  • I just updated to the latest aperture, i have projects previously saved on a drive (in the old version) that now won't load... how do i update them?

    Hi,
    i just updated to the latest aperture, i have projects previously saved on a drive (in the old version) that now won't load... how do i update them?

    But, unless I missed something, you are doing the repair with Aperture 3.5 so if 3.5 can't open an earlier library before doing the upgrade then unless I'm missing something the library will be upgraded before the repair is run, no?
    OT:
    You got me there, Frank - I wondered about the same thing, but Aperture is behaving differently, when upgrading a library, depending on if you are launching into the First Aid Tools or not.
    I repeated my experiments, to explore this difference:
    I restored an Aperture 3.4.3 library and launched the First Aid Tools:
    Apertur went directly into First Aid Mode without first asking to upgrade.
    Then "Repair" asked to be allowed to upgrade the library as you predicted.
    During the upgrade "Aperture"showed "Rebuilding", not "Repairing" or "upgrading". 
    Second experiment: When I only double-click the 3.4.3 library instead of repairing, the upgrade alert is very different:
    It takes a shorter time and does not show "rebuilding".
    I am quite certain, that Aperture will use a different upgrade prodecure, when launched into the First Aid panel for repairing or rebuilding.

  • My iPod Touch will not update it's OS

      - It times out every single time I try and download, yet my Internet Connection is fine? I have checked out the Online Support from one end to the other, but can't find any clue as to how I can overcome this. I thought it MUST be possible to download the file (which appears to be about 650Mb) to my PC and then connect to my iPod and update from the PC, but I cannot find a link to the 4.3.2 update. a) Is it possible to update the OS from the PC? (b) Is the file downloadable without having to rely on the iTunes automatic update procedure?
    many thanks

    Thanks very much - this was very helpful. I did manage to find a download from appldnld.apple.com
    Just for information, this is what the prodecure was: The download file is iPod4,1_4.3.2_8H7_Restore.zip and is 650Mb in size. I saved it to my hdd, then started up iTunes and selected the iPod device and the Summary tab.
    While holding down the Shift key (on a PC) I select the Update button - this brings up the dialog box that requests the location on the PC - Note that it looks for a file with extension .ipsw
    I renamed the download file to iPod4,1_4.3.2_8H7_Restore.ipsw and selected that file (i.e. it is not necessary to extract anything from the zip file prior to the update).
    As Illaass mentioned in his post, the update is first confirmed via the Apple web site then the update is implemented. Everything went smoothly.
    Thanks again.

  • Tecra M9-136 - BSOD during Vista SP2 update

    Tecra M9-136 asked this morning to update to Vista SP2 and during the process the BSOD 0x0000007E arrived. Restarted in Safe Mode and the installer continued and then finally reported that the update had failed - and reverted to SP1. This took most of the morning.
    It will start in Safe Mode but on a normal boot-up, Vista SP1 gets through the fingerprint recognition and then fails with the same BSOD (it doesn't get as far as displaying the desktop).
    The laptop has BIOS level 1.80. I've tried in Safe mode to install 1.90 but it tells me that the battery has insufficient charge and the power adapter isn't attached. Both untrue.
    Stuck - need advice. Could this be a hard fault? Can't see how I can update anything if it's a soft fault.
    thanks

    The message with the BSOD mentioned checking BIOS and driver versions. Anyway, no change made to that.,
    I tried System Restore but the only available restore point was the SP2 installation. I thought Vista was supposed to save a restore point every 24 hours even if nothing new had been installed.
    I've now found in System Information / Windows Error Reporting several messages like this:
    28/09/2009 12:08 Windows Error Reporting Fault bucket 0x7E_NULL_IP_DRVNDDM+57bd, type 0
Event Name: BlueScreen
Response: None
Cab Id: 0

Problem signature:
P1: 
P2: 
P3: 
P4: 
P5: 
P6: 
P7: 
P8: 
P9: 
P10: 

Attached files:
C:\Windows\Minidump\Mini0928 09-04.dmp
C:\Users\me\AppData\Local\Te mp\WER-75660-0.sysdata.xml
C:\Users\me\AppData\L ocal\Temp\WER7D78.tmp.version.txt
& #x000d;
These files may be available here:
C:\Users\me\AppData\Local\Mic rosoft\Windows\WER\ReportArchive\Report06d1c4b5

  • Cannot open and update IPhoto after upgrading to OXYosemite

    From the App store, I downloaded and installed OXYosemite. There are 2 more updates available: iPhoto and iMovie. When I try to upload them, the notice I get is "Update Unavailable with This Apple ID  This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled."
    I have 2 apple IDs when I inquire about my ids. Signing in App Store with either of them, doesn't resolve the problem. I get the same notice. iTunes, Mac, mobile downloads, all use the same apple IP, only for the computer downloads from App Store isn't working.
    What should I do?
    Thanks, Sev

    I have the same problem and can't find out how to correct it.  Unable to update iPhoto or iMovie .. I get the same message as above user.  Help!

  • Error message: "playlists selected for updating no longer exist"

    I tried to update my ipod nano and I guess I had deleted a playlist, but since then, I have not been able to update. Every time I try, I get the following message:
    "Cannot be updated because all of the playlists selected for updating no longer exist."
    I haven't been able to highlight which playlists are selected to begin with.
    I read through the manual and thought that maybe rebooting the whole system might work. So I deleted Itunes from my computer and re-installed.
    Then I tried re-setting my ipod. So now I have nothing on my ipod.
    I also deleted everything from my library, thinking it might help to start from scratch. Nothing has worked.
    How do I "select" and "unselect" playlists so I can get up and running again?

    Here you go.
    http://discussions.apple.com/thread.jspa?messageID=607312&#607312

  • Error message iPod cannot update b/c all of the playlists no longer exist

    Hello. I have been getting this error message. "Songs on the iPod "MAR(the name of my iPod)" cannot update because all of the playlists selecting for updating no longer exist." And my playlists are still on the left side in my iTunes. They do exist. I have a feeling ths might have to do with the fact that on vacation the person I was visiting gave me a gift of putting all of his music that would fit into the external hard drive part of my iPod, and for the past week or so I have been putting that music onto my 40 GB portable hard drive at home. I suspect I took a vital folder out of my iPod by accident. Right now I have the folder iPod_control if I open my iPod up in My Computer. Am I missing something? Right now my iPod is empty because iTunes made a composite playlist last week and I deleted it thinking I could get my real playlists back. Can you help me, or reccomend a site/someone who can? Thank you.
    PC   Windows XP  

    hiya!
    And my playlists are still on the left side in my iTunes. They do exist.
    let's just doublecheck this. folks get this message if they have "automatically update selected playlists only" selected in their itunes "ipod" preferences tab. so bring up that tab ("edit > preferences", click "ipod" while the ipod is showing up in the source list), and do a playlist by playlist crosscheck of the playlists selected in that tab, and the playlists showing up in the itunes sourcelist.
    is there any playlist selected in the preferences tab that isn't showing up in the sourcelist?
    love, b

  • Video IPOD no longer recognized by Itunes and wont Update

    This is a long complicated issue. My Ipod has been working flawlessly until 2 weeks ago. Someone tried to plug it up to their computer to charge it and it wiped out my library and added their library. At first i was thinking no big deal, i will just reconnect it with my computer and it will load my library back on. However once connected to my computer it is not recognized by itunes. So i did a reset , which seemed to be working great and it started "updating" about 80% through that process it gave me an error message that says " This disc can not be written to or written from" now I have no idea why it would say that? and although it seems completely wiped out and useless, it still shows that much memeory is missing in the "about ipod" screen on the ipod. So i know the information is there somewhere , somehow?... Anyway I dont know what to do, Does anybody have any suggestions?
    Oh and I have also uninstalled and reinstalled the Itunes program to make sure it is up to date. WOuld adding new songs to my library have caused this problem?

    1. Try Resetting the iPod. Hold Select and Menu for 6-10 seconds - until you see the Apple Symbol.
    2. Use iPod Updater to restore your iPod to factory settings.
    See if those two steps clear up your problem.

  • Error during OS 4.2 update; Ipod no longer recognized by windows or itunes;

    I've had my 3G 8gb since last Feb and never updated the OS (3.1.3). Yesterday I tried updating to 4.2. (OS: Windows Vista 64bit Home Premium; iTunes: 10.1.1.4) There was an error (unfortunately did not make a note of). Now my ipod touch is stuck in "Recovery Mode" and cannot be seen by Windows or iTunes. Windows does detect new hardware but when I browse for the drivers, I get the error "Could not find driver software" after I pointed exactly where it was located in C:\Program Files\Common Files\Apple\Mobile Device Support and C:\Program Files\Common Files\Apple\Mobile Device Support\Drivers. I've tried removing all Apple software from my computer and then reinstalling iTunes but I get the same results. I don't know what else to try. Any ideas? Thanks!

    I found a solution last night through http://support.apple.com/kb/ts1538. But thank you for trying. The worst part was that I was doing the right thing all along but I think there is a bug in Vista (or I don't understand why I couldn't do it the way I was). On the window that appears after I clicked "Browse my computer for driver software", there are 2 options. The first says "Browse for driver software on your computer" which has an edit box under it and a "Browse" button next to the edit box which allows you to pick the parent directory that driver is in. The second option says "Let me pick from a list of device drivers on my computer". I knew where the drivers were so I was doing option one and it would not work (many repeated attempts after re-installing iTunes, etc.) - VERY FRUSTRATING. But now I'm up and running!!!

  • Error while updating a plan

    Hi,
    I have encountered an error while updating a plan. While i update the uplan , the grid gets filled but it throws a message stating
    "Maximum Number of Result Blocks has been reached"
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "deposittest created 7/19/2007 5:11:50 PM" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    The data updation stops after the row count 49900.
    Please help to resolve this error .
    Thanks in advance.
    Regards,
    Lathika

    Hi,
    in BAM-Administrator you should rraise Parameter "MaxResultBlocks".
    BAM originaly is al licensed Software from Group1 named "Sagent Data Flow".
    This may help searching the web.
    Greetz,
    GOI

  • Macbook4,1 10.6.8 and firmware update - what went wrong?

    Macbook 4,1 2008 2.4Ghz (not unibody). I recently reformatted my hard drive and reinstalled 10.6 from the Retail DVD and all seemed to go well. The MB was working fine up to that point. I then set up the MB (network, date and time, etc.) and repaired permissions.
    I then checked Software Update and downloaded and installed the recommended updates to 10.6.8.
    Again, all seemed to go fine. System booted and I repaired Permissions again. I went to the Apple web site, a couple of other web sites, and Software Update found another update to install: Firmware. Though I don't remember what version.
    I clicked OK and it installed.
    Upon reboot, it seemed to install okay.
    But then I left the Macbook and it went into Sleep.
    I didn't come back to it again until the next day.
    When I pressed a key to wake it, I got what I now know is the screen that appears after you wake it from SAFE SLEEP. As per this Apple KB article: http://support.apple.com/kb/HT1757.
    And this is where the problems started.
    After the MB woke to the Safe Sleep screen, which shows the desktop a little "out of focus", the progress bars started filling in from left to right, BUT before they completed, the screen went BLACK.
    And it has had a problem with black screen ever since. I can boot the MB from internal or external HD or from DVD, and it seems to boot fine. Boot chime, Apple logo, spinning wheel, then at the point where it pauses, blue screen, then goes to desktop, instead the screen goes black.
    It finishes booting, but seems to go into Sleep.
    I can wake it by pressing a key, but the screen either comes on and goes black again after 10 seconds, or I get the Safe Sleep wake screen, and then it goes black after 10 seconds.
    And at boot or when waking the MB, the front LED flashes 5 times. There are no error beeps.
    I've tried changing RAM, but problems remain.
    So what's all this? Any ideas?
    The display doesn't seem dead, as it works to boot and wake. The MB works fine with external monitor.
    It's weird, but I can't think of anything apart from the Firmware update. The problems started right after installing it.
    Unfortunately, this model of Macbook doesn't have a Firmware Restoration image to download and burn to CD. It is the ONLY Mac at this point that doesn't have this!
    I called Apple support and even bought the 49 Euro Pay Per Incident service, which proved to be the same as throwing 49 Euro out the window. The only "technical" support they provided was to Reset the SMC, which you can find out about FOR FREE at the Apple website. And which I'd done anyway. I'd also reinstalled the MacOS. Don't want to beef too much, but sheesh, you've already got a Macbook that might need costly repairs, and they make you pay 49 Euro BEFORE they even ask you about the problem and what you've done to try to solve it. I'm tempted to say "ripoff". I mean, if all they can offer you is the advice to reset the SMC - which Apple offers for free at their website - then that's pretty poor service for 49 Euro, to say the least.
    Apart from the wasted 49 Euro, I'm pretty peeved about the Firmware update (or so it seems) wrecking a perfectly working 2008 Macbook. I don't know how to convince Apple of this, but I'm certainly going to try.

    Thanks for the reply.
    Re. the Displays setting, the Macbook display isn't recognized and mirroring isn't an available option.
    I've scoured the net and the idea of replacing the PRAM battery may be something to try. I read a post by a guy with a Macbook logic board screwed up by a Firmware update, which he solved by replacing the PRAM battery, as when you disconnect it you reset the logic board.
    Which capacitor?
    No luck so far with talking to Apple. I will try to get hold of someone a little more tech savvy and/or in a position of authority, as it seems that the Firmware is the culprit. Obviously a million other things could go wrong with a Macbook, but given the timing here it looks like the Firmware. Firmware updates can and occasionally do screw up a computer, as most manufacturers will warn you before you apply the update: PC makers, printer makers, etc. And they probably warn you that it's all your responsibility if anything goes wrong. But re. the Apple Firmware update:
    1) it came thru Software Update
    2) there was no warning
    3) to make things worse, there's no Firmware Restoration image that I can burn to a CD to reflash the logic board: this is the only Apple computer that doesn't have a Firmware Restoration option
    I'll try to get thru to a manager and convince him/her that the firmware may have been the cause.
    Do you think an authorized Apple tech might have access to some way to do a firmware restoration? Something not avaiable to mere mortals? Because if not, the only solution looks like a new logic board.

  • I tried to install latest OS update. Recd error installing. IT tried to load the upgrade in Safe Mode. Now system will not boot up. IT says I have to do a clean install which loses all data.

    After receiving an error when I try to install the latest update of OS-X, I took my laptop to oour schools IT dept. They tried to run the update in safe mode and then they got an error saying the system could not find the hard drive. Now they want to run a clean install which loses 1000's of docs and pictures. I have Block I exams in med school next Monday and all of my notes and slides are on that hard drive.
    The IT dept took the hard drive out and tried to back it up and they said they other computer could not connect or find my hard drive.
    Major panic....
    I have Norton antivirus and have never found any viruses on the system. I also have a program called ExamSoft which some other students here have noted they had similar crashes. Not sure if that is the issue...

    Several take home messages here:
    always back up before you update.
    always back up anything you don't want to lose. Kind of like flossing. Only floss the teeth you don't want to lose.
    Norton is very, very bad software, and you should get rid of it.
    You don't need antivirus software on your mac. Antivirus software on macs causes more trouble than it is worth.
    Your hard drive may be failing and thus may not be salvageable.
    You could try booting into the recovery partition and seeing if you can repair your hard drive.
    If that doesn't work, then there is a small chance that a third party utility (like Disk Warrior or TechTool) might be able to fix your drive (if it is not failing).
    If that doesn't work, you may be able to send your drive and a lot of cash to a drive recovery service and see if they can get your files off it.
    In the mean time, get notes and slides from a (smart) friend.

  • Adobe Photoshop CS2 Error messages after update to mac os 10.4.6

    After updated to mac os 10.4.6 everytime I use Photoshop CS2 I receive an error message "Could not complete your request because of a program error"
    I did all the workarounds that were described in document 331627 from Adobe's website and nothing worked.
    I also subscribe to maxosx.com support and someone suggested removing the legal.localized/Tien...file from the photoshop cs2/legal directory, but everytime I tried to select the directory "legal" from within the finder view, it disappeared and closed the finder window.
    HELP!

    Did you upgrade from a previous version of OS X like 10.3.x or 10.2.x or from a prior version of 10.4.x? If the former, there are probably some files in your previous system folder that need to be restored.
    Otherwise, double click Photoshop when it's closed, and then IMMEDIATELY hold Command + Option + Shift. You'll get a box for resetting the settings. Select Yes and maybe that will help.
    --Ryan

  • I am trying to update Adobe Bridge and Photoshop CS6, because it is not opening my CR2 files taken by my Canon 6D.  I have tried to go to help updates, and the software says that it is "Up to Date".  However, if I view the plug-in, it says that Camera R

    I am trying to update Adobe Bridge and Photoshop CS6, because it is not opening my CR2 files taken by my Canon 6D.  I have tried to go to help > updates, and the software says that it is "Up to Date".  However, if I view the plug-in, it says that Camera Raw is only version 7.1.  I can not find a direct download for Camera Raw 7.3, only the DNG converter, NOT CAMERA RAW!  Please Help!

    Did you fix your issue?  I am having the same one

  • Error in updating Photoshop CC

    I just updated all of my CC programs but Photoshop failed - even though it says that it updated in the CC menu. When I try to launch PS this is the message I get "Photoshop.exe - Entry Point Not Found. The procedure entry point ?Terminate@StructuralImageEditing@@YAXXZ could not be located in the dynamic link library C:\Program Files\Adobe\Adobe Photoshop CC (64 Bit)\Photoshop.exe

    Please follow the below mentioned steps let me know if they work:
    1. Uninstall current Ps CC app, If there are any issues with CC uninstall then run the Cleaner tool to remove Ps CC :http://www.adobe.com/support/contact/cscleanertool.html .
    2. Restart your system
    2. Install Ps CC app from Creative Cloud
    3. Do not launch Ps
    4. Update to 14.1.2 via the Creative Cloud desktop application
    5. Once the updates are successfully applied, Launch Ps CC to verify.

Maybe you are looking for

  • Problem in app

    hi guru's There are invoices overdue under vendor xyz and abc but its has not picked up in payment proposal what would be the reason?? value points assigned thanks in advance regards sunitha

  • Mediator Resequencer,JMS Adapter: queue consumers increase from PS2 to PS4

    Hi, We have an environment using SOA Suite and Mediator Resequencer, it is using a FIFO approach. It has been running fine in SOA Suite version 11.1.1.3. We are using a JMS Adapter, consuming the messages from the UDD queues as we have a SOA cluster

  • Web Server Cross-Site Scripting Vulnerability

    We have few windows server 2003 web servers which have been detected with the above vulnerability, can someone let us know if there is a patch that can fix this vulnerability. Thanks

  • Unableto openRepositoryafter giving usercredentials:Unable to connect to MS

    Hi, We have installed PI711 on cluster environment and now while doing readiness check i was trying to open Intergration Builder & Repository but it is giving me error : "Cannot connect to server using message server: ms://PICI.erp.bsnl.co.in:8102/P4

  • PL/SQL errors

    where could I find a complete reference for error messages