How to update for single batch id in one a table by using mutiple parametrs

Hi Everyone,
I need simple pl/sql logic to update one table using with some parametrs.I need a logic for single batch_id there will be 100 of records are there .how do i update my custom table ? how do i show how many records have been updated for each batch ? how to handle excpetions while updating ?Som body could help me it will be great.
-- Sample Code
PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
P_IN_TRANS_ID IN number,
P_IN_TRANS_STATUS IN varchar2,
P_IN_ERROR_MSSG IN varchar2
                                             ) is
cursor
select*from xx_cust_table
BEGIN
UPDATE xx_cust_table
SET TRANSMISSION_ID=P_IN_TRANS_ID
TRANSMISSION_MSG=P_IN_TRANS_STATUS     
PROCESSED_FLAG=P_IN_ERROR_MSSG
where BATCH_ID=P_IN_BATCH_ID
END UPDATE_table;

PROCEDURE UPDATE_table (P_IN_BATCH_ID IN Number,
P_IN_TRANS_ID IN number,
P_IN_TRANS_STATUS IN varchar2,
P_IN_ERROR_MSSG IN varchar2
) IS
BEGIN
UPDATE xx_cust_table
       SET TRANSMISSION_ID=P_IN_TRANS_ID
              TRANSMISSION_MSG=P_IN_TRANS_STATUS
               PROCESSED_FLAG=P_IN_ERROR_MSSG
  WHERE BATCH_ID=P_IN_BATCH_ID;
DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT||' rows updated!');
--EXCEPTION
--  WHEN DUP_VAL_ON_INDEX THEN
--    DBMS_OUTPUT.PUT_LINE('Duplicate value');
--  WHEN OTHERS THEN
--   <display sqlcode and sqlerrm>
END UPDATE_table;

Similar Messages

  • How to update a single field in Word macro

    Hello,
    I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
    are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
    Thank you

    Stefan's response is correct.
    Here is a macro that should update only filename fields.
    Sub FileNameFieldUpdateAllStory()
    ' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
    ' repaired by Jezebel
    ' All Story Field Updater - Filename fields
    Dim oField As Field
    Dim oStory As Range
    ' On Error Resume Next
    For Each oStory In ActiveDocument.StoryRanges
    ' This goes into headers and footers as well as the regular document
    Do
    For Each oField In oStory.Fields
    If oField.Type = wdFieldFileName Then
    oField.Update
    End If
    Next oField
    Set oStory = oStory.NextStoryRange
    Loop Until oStory Is Nothing
    Next oStory
    End Sub
    See Installing Macros for help in using this.
    Charles Kenyon Madison, WI

  • HT4562 How to update for the new version

    How to update for the new version

    Go to Settings - Software Update or connect your phone to your PC/Mac that has iTunes and update via iTunes.

  • I have two apple IDs i dont know how that happened but i want to delete one so i can use that information on my itouch

    i have two apple IDs i dont know how that happened but i want to delete one so i can use that information on my itouch

    You can use more than one ID oin the iPod
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • How to update storage location & batch split on delivery items?

    Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
    1) Enter or update a storage location on a delivery item?
    2) Batch split a delivery item to give multiple batch    numbers. For example if delivery item is '101' then    after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
    Do not wish to use BDC or call transaction. Any help appreciated.

    hi sailatha..
    im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity..  my requirement is  if the material is not there in the specified storage location it should search in the other storage locations for delivery.
    how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
    this is urgent requirement..
    kindly revert me back if u can help.
    thankx
    helpful answer will be rewarded.

  • How to update a Single App

    Hello,
    maybe its a stupid question, but: how is the updating process using a single app?
    Until now we created auto-renewable apps with newsstand using dps folio producer
    itunes connect and viewer builder. We build the issues at the in-app purchases and
    use the unique product-id we specified before in folio producer. That allows apple
    to find the right issue and allows updates as well, right?!?
    Right now i createad a single app without in-app purchases but i can't specify or
    write anywhere the product-id!? Do i have to publish the folio in folio producer,
    export the hole folio, recreating the hole distribution-viewer and re-upload to
    itunes connect? If we only want to update two stacks, should we update them all?
    I want to repeat my self: its a stupid question, but i have no idea, sorry... I'm a rookie...

    The Product ID in a single-issue app isn't important. Updating a single-issue app is fairly painless:
    1. In Folio Builder/Folio Producer, edit the articles, upload them, update folio, export .zip file.
    2. In Viewer Builder, edit the existing app. Specify the new .zip file. Download, sign and test .ipa file. Download and sign .zip file.
    3. In iTunes Connect, create a new version for your app. Use App Loader to submit new build to Apple.
    Whether you want to fix a single typo or rebuild the entire issue, the steps are the same.

  • How to update a single row of data table

    How we can update a single row of the data table by clicking the button in the same row.
    Thanks in Advance.

    Hi!
    What do You mean 'update'? Get fresh data from DB or change data and commit it in DB?
    If commit, try to read here:
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    Thanks,
    Roman.

  • How to update for oracle Release 10.2.0.1 to 10.2.0.3

    Hi,
    Can anybody give me hint how can i update my oracle version 10.2.0.1 to version 10.2.0.3.
    I have installed oracle 10gR2 with following:
    SQL> select * from v$version;
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE     10.2.0.1.0     Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Now how to update to Release 10.2.0.3 - Prod
    Regards,
    Rushang

    Download it as a patch from Metalink.
    If you have Vista, go to http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10203vista.html
    You will normally follow the upgrade guide that comes with the download. It is simple to follow.

  • MFE v 2.10 how to updat for N86 8MP

    Greetings from Sydney,
    I have a N86 8MP with software updated to v20.115 installed.  Mail for Exchange (MFE) is showing as v 2.1.0. (from about) I have tried to update via the applications tab and nothing is available.
    With v2.1.0 I do not have the option available for Out of Office or to set Flag status for e-mail.
    I have tried to install 2.9.158 for S60 v3 but it comes up 'update error'.
    Does anyone know how to update MFE on this mobile?
    Thank you

    smileys are cool   but too many are bad  
    whats wrong with win xp? its the most stable version i've ever used.
    it also sounds to me like you are asking questions here because you are being ill-advised
    if you have two hard drives you want to install, load up win xp and partition and format them both
    if you want to keep data off the one drive, format the other and keep it; win xp works with both NTFS and FAT32 partitions, so if you keep it as a FAT32 disk and don't format it, win xp will still be able to read it if it is connected as a slave drive
    and as for whoever advised to buy a PCI controller card, this is the 21st century!! all motherboards have IDE controllers now!! i remember the old 486 days with the E-IDE VLB controller cards, now thats going back a bit!

  • How to install for Single Sign-on?

    Hello Community
        When you install a Sharepoint 2013 Server farm
    how do you install the Sharepoint 2013 Server farm
    so that it is setup for "Single Sign-on (SOS)"?
        Thank you
        Shabeaut

    Hi Shabeaut,
    Yes, in this case if your users who are in different domain can are able to log in to SharePoint manually you can enable trust relation for all types
    of browser, here are the links you can follow.
    http://expressionsinweb.com/2011/05/17/allow-the-pass-through-of-window%E2%80%99s-credentials-to-sharepoint/
    http://blog.fpweb.net/sharepoint-credentials-prompt-quick-tip/#.VKHarl4B4
    and for understanding the concept of ADFS with SharePoint and what other claim provider to implement SSO see below.
    http://www.slideshare.net/thomasvochten/spsuk2013-adfs-sp2013
    Krishana Kumar http://www.mosstechnet-kk.com
    Please mark the replies and Proposed as answer if they help and solve your issue

  • How do I undo the last Mac update for my epson all in one. It did work beforehand but does not now.

    Yesterday I installed an Apple update for my Epson printer, but I cannot now print! Any ideas.

    Restore backup taken prior to update.
    Allan

  • How to update for 2nd generation ipod touch?

    I have a 1st or 2nd generation ipod touch, was bought in early 2008 i believe.
    I can't for the life of me find anything that will let me download the newest update for the software. I've seen other
    people have said they have downloaded the 4.3 but I just can't. Is my itunes not up to date? or is it just not
    possible??

    4.2.1 is the latest software available for the second gen ipod touch.
    3.1. is the latest from a 1st gen.

  • No CS5 updater for Mavericks but CS6 gets one

    Another glaring example of Adobe coldly abandoning its Fireworks users. There's an updater for CS6 for the new Mavericks OS, but no updated for CS5.
    Adobe keeps making me dislike it more. Wish Macromedia had never sold Fireworks. At least they had some enthusiasm about the app.
    And I'm not about to be sucked into the pay-in-perpetuity scheme called Cloud, in which they make whatever tweaks to the app that they feel like making whether I want 'em or not. At least in sticking to CS5 I have an app that I know, without unrequested, un-cancellable "improvement" changes.
    Guess I'll just have to live with the new, erroneous "Could not save this file" prompts in CS5 and renew my Adobe disgust each time the prompt rears its meaningless little window.

    Brad Messer wrote:
    There is NO alternative to Fireworks.
    You are correct: there is nothing out there that completely mimics Fireworks. Do realize that the slicing paradigm in Fireworks is somewhat outdated, though, and web workflows have evolved. FW never really kept up with those since Adobe took over development.
    Some options:
    Sketch: http://www.bohemiancoding.com/sketch/
    Xara Webdesigner or Designer Pro (which includes all of WebDesigner's features): http://www.xara.com/us/products/webdesigner/
    Macaw will be out soon. Looks very interesting: http://macaw.co/
    Antetype is also good, though more of an extra tool: http://www.antetype.com/
    Myself, I replaced Fireworks with a combination of Photoline, Xara, and Color Quantizer. And the Foundation framework: http://foundation.zurb.com/

  • How to update CheckBox value change in report in DB table

    Hi;
    I have created a tabular form & added a check box in my Select statment...also i created a procedure On Submit to update my table according to the checkbox values..
    My problem is that the update statment is updating the whole records in the form not only the changes which i done
    Any one can give me the key for the update statment?
    Regards;
    Ehammad

    Did any one tried to implement the same example of dkubicek?!! i tried to do the same code but i have problem (f011) should be identified!!!
    does any1 have any idea about kind of this error?
    Regards;

  • How to update iphone ios to version i like?Now me using ios 4.1.I don't want to update to latest iso 6.0.

    How to update to 5.1.1.If i dont want to update to latest ios 6.

    You posted in the iPad forum instead of the iPhone forum. I'll request that Apple relocate your post.
     Cheers, Tom

Maybe you are looking for

  • Adobe flash player crashes on video

    Every time I play a video on CNN.com, the flash palyer crashes with a window saying that: Security error E2000, no active security context. This repeats every time and if a new video picks up, it appears again. The error has to be cleard with the tas

  • Unable to highlight text in my PDF files

    Iam unable to highlight text in my PDF files ,The tool shows in the toolbar and  i am able to select it .But when i go to the related text which i wish to highlight ,nothing happens . kindly advise, what am i doing wrong. The comment tool is working

  • Server Admin doesn't show Print Queue status

    When I look at my print queues (all 17) under Server Admin, it shows queue name, # of jobs, shared via (IPP & SMB), and printer kind (HP LJ 1022n and HP LJ P2015). It has a column for status, but this is always 100% empty/blank. Also, if I go to the

  • Bug on Google search shortcut on navigation bar

    Hi, There is a bug on that shortcut. When you Slide up from multitasking button(I don't know how it is called) it doesn't show the Google logo on screen and it opens current tasks window and Google search both. It works for other navigation bar butto

  • BPEL customisation on look up field on human task jsp notification.

    We want to customize human task jsp notification Some of files are needed to populate a static list or SQL query and we need to use cascading list on custom jsp file. can we do this declaretively or we need to develop to code. if we need to code how