Update Trigger for Subinventory in Apps in Prduction Batch deatils

Dear all
we have the Apps Application and on the Production Module when creating Batch the form takes Subinventory as default from the setup i need to update it so i created Tigger on the Table after Insert each row update the subinventory field by fixed one
but nothing updated ?? can any onw help me??
CREATE OR REPLACE TRIGGER APPS.XXEGYPLAST_UPDATE_SUBINVENTORY
AFTER INSERT
ON GME.GME_MATERIAL_DETAILS
REFERENCING NEW AS New OLD AS Old
for each row
DECLARE
pragma autonomous_transaction;
t_new_rec GME_MATERIAL_DETAILS%rowtype ;
NAME: XXEGYPLAST_UPDATE_SUBINVENTORY
PURPOSE:
REVISIONS:
Ver Date Author Description
1.0 18/09/2012 1. Created this trigger.
NOTES:
Automatically available Auto Replace Keywords:
Object Name: XXEGYPLAST_UPDATE_SUBINVENTORY
Sysdate: 18/09/2012
Date and Time: 18/09/2012, 12:21:47 ?, and 18/09/2012 12:21:47 ?
Username: (set in TOAD Options, Proc Templates)
Table Name: GME_MATERIAL_DETAILS (set in the "New PL/SQL Object" dialog)
Trigger Options: (set in the "New PL/SQL Object" dialog)
PROCEDURE populate_new IS
BEGIN
t_new_rec.MATERIAL_DETAIL_ID := :new.MATERIAL_DETAIL_ID ;
t_new_rec.BATCH_ID := :new.BATCH_ID ;
t_new_rec.FORMULALINE_ID := :new.FORMULALINE_ID ;
t_new_rec.LINE_NO := :new.LINE_NO ;
t_new_rec.ITEM_ID := :new.ITEM_ID ;
t_new_rec.LINE_TYPE := :new.LINE_TYPE ;
t_new_rec.PLAN_QTY := :new.PLAN_QTY ;
t_new_rec.ITEM_UM := :new.ITEM_UM ;
t_new_rec.ITEM_UM2 := :new.ITEM_UM2 ;
t_new_rec.ACTUAL_QTY := :new.ACTUAL_QTY ;
t_new_rec.RELEASE_TYPE := :new.RELEASE_TYPE ;
t_new_rec.SCRAP_FACTOR := :new.SCRAP_FACTOR ;
t_new_rec.SCALE_TYPE := :new.SCALE_TYPE ;
t_new_rec.PHANTOM_TYPE := :new.PHANTOM_TYPE ;
t_new_rec.COST_ALLOC := :new.COST_ALLOC ;
t_new_rec.ALLOC_IND := :new.ALLOC_IND ;
t_new_rec.COST := :new.COST ;
t_new_rec.TEXT_CODE := :new.TEXT_CODE ;
t_new_rec.PHANTOM_ID := :new.PHANTOM_ID ;
t_new_rec.ROUNDING_DIRECTION := :new.ROUNDING_DIRECTION ;
t_new_rec.CREATION_DATE := :new.CREATION_DATE ;
t_new_rec.CREATED_BY := :new.CREATED_BY ;
t_new_rec.LAST_UPDATE_DATE := :new.LAST_UPDATE_DATE ;
t_new_rec.LAST_UPDATED_BY := :new.LAST_UPDATED_BY ;
t_new_rec.ATTRIBUTE1 := :new.ATTRIBUTE1 ;
t_new_rec.ATTRIBUTE2 := :new.ATTRIBUTE2 ;
t_new_rec.ATTRIBUTE3 := :new.ATTRIBUTE3 ;
t_new_rec.ATTRIBUTE4 := :new.ATTRIBUTE4 ;
t_new_rec.ATTRIBUTE5 := :new.ATTRIBUTE5 ;
t_new_rec.ATTRIBUTE6 := :new.ATTRIBUTE6 ;
t_new_rec.ATTRIBUTE7 := :new.ATTRIBUTE7 ;
t_new_rec.ATTRIBUTE8 := :new.ATTRIBUTE8 ;
t_new_rec.ATTRIBUTE9 := :new.ATTRIBUTE9 ;
t_new_rec.ATTRIBUTE10 := :new.ATTRIBUTE10 ;
t_new_rec.ATTRIBUTE11 := :new.ATTRIBUTE11 ;
t_new_rec.ATTRIBUTE12 := :new.ATTRIBUTE12 ;
t_new_rec.ATTRIBUTE13 := :new.ATTRIBUTE13 ;
t_new_rec.ATTRIBUTE14 := :new.ATTRIBUTE14 ;
t_new_rec.ATTRIBUTE15 := :new.ATTRIBUTE15 ;
t_new_rec.ATTRIBUTE16 := :new.ATTRIBUTE16 ;
t_new_rec.ATTRIBUTE17 := :new.ATTRIBUTE17 ;
t_new_rec.ATTRIBUTE18 := :new.ATTRIBUTE18 ;
t_new_rec.ATTRIBUTE19 := :new.ATTRIBUTE19 ;
t_new_rec.ATTRIBUTE20 := :new.ATTRIBUTE20 ;
t_new_rec.ATTRIBUTE21 := :new.ATTRIBUTE21 ;
t_new_rec.ATTRIBUTE22 := :new.ATTRIBUTE22 ;
t_new_rec.ATTRIBUTE23 := :new.ATTRIBUTE23 ;
t_new_rec.ATTRIBUTE24 := :new.ATTRIBUTE24 ;
t_new_rec.ATTRIBUTE25 := :new.ATTRIBUTE25 ;
t_new_rec.ATTRIBUTE26 := :new.ATTRIBUTE26 ;
t_new_rec.ATTRIBUTE27 := :new.ATTRIBUTE27 ;
t_new_rec.ATTRIBUTE28 := :new.ATTRIBUTE28 ;
t_new_rec.ATTRIBUTE29 := :new.ATTRIBUTE29 ;
t_new_rec.ATTRIBUTE30 := :new.ATTRIBUTE30 ;
t_new_rec.ATTRIBUTE_CATEGORY := :new.ATTRIBUTE_CATEGORY ;
t_new_rec.LAST_UPDATE_LOGIN := :new.LAST_UPDATE_LOGIN ;
t_new_rec.SCALE_ROUNDING_VARIANCE := :new.SCALE_ROUNDING_VARIANCE ;
t_new_rec.SCALE_MULTIPLE := :new.SCALE_MULTIPLE ;
t_new_rec.CONTRIBUTE_YIELD_IND := :new.CONTRIBUTE_YIELD_IND ;
t_new_rec.CONTRIBUTE_STEP_QTY_IND := :new.CONTRIBUTE_STEP_QTY_IND ;
t_new_rec.WIP_PLAN_QTY := :new.WIP_PLAN_QTY ;
t_new_rec.ORIGINAL_QTY := :new.ORIGINAL_QTY ;
t_new_rec.BY_PRODUCT_TYPE := :new.BY_PRODUCT_TYPE ;
END populate_new ;
BEGIN
-- if :New.created_by = '2078' then
update GME.GME_MATERIAL_DETAILS
set SUBINVENTORY = 'M . B'
where LINE_TYPE = :New.LINE_TYPE
and BATCH_ID = :New.BATCH_ID
and LINE_NO = :New.LINE_NO;
COMMIT;
--end if;
EXCEPTION
WHEN OTHERS THEN
FND_MESSAGE.SET_NAME('GME', 'GME_UNEXPECTED_UPDATE_ERROR');
FND_MESSAGE.SET_TOKEN('ERROR', sqlerrm);
fnd_message.raise_error;
RAISE_APPLICATION_ERROR(-20400,'An error has occured.Please contact your system administrator'||SQLCODE||SQLERRM);
END XXEGYPLAST_UPDATE_SUBINVENTORY;
/

If I try to remove anything unused from your long post this is what I get:
+(And please another time format your code - makes it very much easier to read...)+
user11973451 wrote:
CREATE OR REPLACE TRIGGER APPS.XXEGYPLAST_UPDATE_SUBINVENTORY
AFTER INSERT
ON GME.GME_MATERIAL_DETAILS
REFERENCING NEW AS New OLD AS Old
for each row
DECLARE
pragma autonomous_transaction;
BEGIN
update GME.GME_MATERIAL_DETAILS
set SUBINVENTORY = 'M . B'
where LINE_TYPE = :New.LINE_TYPE
and BATCH_ID = :New.BATCH_ID
and LINE_NO = :New.LINE_NO;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
FND_MESSAGE.SET_NAME('GME', 'GME_UNEXPECTED_UPDATE_ERROR');
FND_MESSAGE.SET_TOKEN('ERROR', sqlerrm);
fnd_message.raise_error;
RAISE_APPLICATION_ERROR(-20400,'An error has occured.Please contact your system administrator'||SQLCODE||SQLERRM);
END XXEGYPLAST_UPDATE_SUBINVENTORY;
/That big local procedure wasn't used in your code, so the above is easier to see what you are doing.
And I don't understand what you are trying to do here?
You have an AFTER INSERT trigger that tries with an autonomous transaction to update a column of the same record (and maybe some other records with same LINE_TYPE / BATCH_ID / LINE_NO as well?)
What is the purpose of this?
I think what you maybe is experiencing is, that you execute an insert, then in the trigger you try to update the same record, but to avoid mutating table error you have created the trigger in an autonomous transaction, and therefore the trigger cannot yet see the inserted record as that has not yet been committed.
If the update is supposed to update just one record, then maybe a BEFORE INSERT trigger to just set the value of :new.SUBINVENTORY?
If supposed to update more than one, then exchange your autonomous transaction with one of the better ways of avoiding mutating table error by remembering the rows to update in "for each row" triggers and then do the updates at the end in an after insert trigger without "for each row."

Similar Messages

  • IOS update fix for the map app

    So exactly how long do users have to wait for an update fix for the map app?

    The maps included with the iPhone do not cost extra and do use the existing data plan.
    AT&T Navigator (GPS) does cost an extra $9.95 (or so) per month.
    Most other GPS apps have no monthly fee and use the GPS and, in some cases, the data plan on your phone.
    I recommend either Navigon (takes a lot of storage room but maps are stored on the iPhone) or GPS Drive (reasonable price, has great features, maps come from the data path so requires a data signal but takes much less space).

  • Possible to create local "update server" for iOS and apps?

    I use the software update server in OSX Server to locally cache updates, which speeds them up dramatically.
    Unfortunately, the app store is still fairly slow.
    Does anyone know if Apple has implemented the same sort of caching or update server for iOS devices? I think I read that there's a semi-transparent cache if you have an AirPort Extreme in your path to the Internet, but I don't and really couldn't even if I wanted to...
    Thanks.

    If apple would get thier crap together it is supposed to be there already. It is really ******* me off that there little to no effort from apple to get all of this working PRE OS release. Had this worked properly before the OS update schools across the country would probably not been brought to thier knees. I ended up having to block the entier apple domain to keep District Office online.
    Here is apples promise at the iOS launch.
    http://www.apple.com/ios/business/
    Caching Server 2 supports iOS 7.
    By caching purchased content and software updates on a local Mac running OS X Mavericks Server, Caching Server 2 speeds up the download and delivery of content through the App Store, Mac App Store, iTunes Store and iBookstore. Your users get faster downloads of content and updates to their iOS devices directly over your corporate network.

  • Update badge for an uninstalled app store app

    I installed the application "gold strike" a few months ago and have since uninstalled it using the application "appcleaner" to ensure that it has been completely uninstalled.  However, the mac app store icon in my dock still has an update notification badge.  When I go to updates in the app store, the update is for "gold strike" version 1.0.1 even theough I don;t have it installed on my computer.  Not a huge deal but it's rather annoying to always see that you have an app that needs updating.  I've seen a similar problem involving the twitter app in other posts. 

    This App shows version 1.0.1 in App Store, but the actual downloaded version is 1.2.2, is it the root problem?

  • Clean Install done but still showing updates required for previous owners apps needing apple id?

    Hi All,
    First time post and newbe to Macbooks so be gentle please... :-)
    I have bought a second hand macbook pro retina, the previous owner had removed all his data but not reformatted. I was having issues that some apps updates were showing that i couldn't update, as it kept asking for the previous owners ID. I thought the best thing to do was to reformat and start again to get a frsh machine...
    First issue after wiping the drive was that when i went to install the OS, it came up saying i didn't own a copy, as it was the provious owner who had installed the OS.... so after buying Mountain Lion under my account (still not sure if i needed to???) i was then able to install a new OS. Went through all the new user screens to set time and keyboard etc so i assumed i now had in effect a new machine.
    Again though, when i went to update the software, the previous users apps, that no longer appear on the machine, were showing as needing an update, and again were asking for the previous owners apple id to update????
    How do i get this sorted so i have a new machine without the history of a previous user, his apps and the required updates?
    I was also worried that after the fresh install i seem to have lost iPhoto, garage etc... i thought these came as standard, am i going to have to buy these also?
    Hope someone can help, desperate to get myself properly up and running and enjoying my new toy!
    Rob

    Selling Macs has become rather messy what with the different license requirements.....
    if the Mac had ML preinstalled, then the owner is allowed to make a one time transfer of the OS license; however, he needs to wipe the drive and use internet recovery to reinstall the system without using an Apple ID
    If, however, the Mac came with something other than ML (SL or Lion), then the seller needs to wipe the drive and reinstall the original system because any license obtained from MAS is NOT transferable.
    So, if it did come with ML originally and unless you wish to contact the seller, try internet recovery - pressing Command + Option + R while restarting ( a slightly different process than recovery) , wipe the drive in Disk Utility and download the OS. It should work - if not, I'd suggest a quick visit to the nearest Genius Bar and ask for help (reminding them that the license does allow a one time transfer).
    As for any other apps, you will need to purchase them (such as iLife, iWork, etc) - none of those licenses are transferable. If you encounter a problem doing so, you might want to address that issue at the Genius Bar as well; you do need to buy them again, but in some instances, someone testing that scenario was not able to, so just be aware that there might be a glitch.
    Edit: In order to do an internet recovery, you will also need to make sure that you are connected only via WiFi.

  • Update available for Lion only app - how to get rid of it?

    Hi,
    The App Store indicates that I have an app (linesmART) which is available for update, but when clicking the update button, a dialog box shows up saying it can't be updated because it requires OS X 10.7. I can imagine this will happen for other apps that will be Lion only soon or later.
    This doesn't make sense though, that the App Store indicates in red there's an update that can't be updated! Is there a way to get rid of that message? Why doesn't App Store check if the available updates are compatible or not with the OS X version installed on our Macs, and show the compatible updates only?

    Apple Feedback
    http://www.apple.com/feedback/

  • How to remove update notification for an unwanted app?

    Hi, recently, I got a notification to update an app I never purchased ("Nyan Cat: Lost In Space"). I checked with Apple support services, I searched that app on my hard drive and in my iTunes and App Store history, it doesn't appear anywhere. But it's still standing here in the App Store app update section, with a red badge on the icon, inviting me to update this app that has never installed on any of my drives. It's really annoying, is there something I can do to get rid of that crap?

    Thanks for your help Dah•veed. I thought that'd be easier to solve but I'll go to an Apple Store.

  • Can any one please send me an update trigger (pl/sql procedure) for ap tables(ap_suppliers,ap_supplier_site_all,and contacts)

    Please send an query for update trigger for those tables .
         1: ap_suppliers
         2: ap_supplier_sites_all
         3: ap_supplier_contacts.
    Thanks,
    Chaitanya.

    Hi,
    Actually ID and Data are different names in my API. Here I mentioned like that.
    Am using Oracle 10g version.
    Yes I am going to get the multiple values using this Ref Cursor. The same ref cursor is used in another API of my package.
    In this API, the user actually enters Application_id and data. API should insert/update the version_master table with the inputs. See application_id is the foriegn key for app_master table.
    The requirement is whenever they enters application_id and data, if application_id already present in the version_master table, then the data should be updated and we should get a status flag for this using Out variable(i.e. using ref cursor only we are showing the status). if the application_id is not present in the version_master table, new record should be inserted. The sequence will generate the version_id for version_master table.
    But the Merge statement is working fine for update and insert also. Problem is am unable to see the success or failure through ref cursor. I don't know how exactly I can use this.
    If data is NULL the operation should be failed. i.e. I should get Failure status here. But am not getting this.
    Please remove the comments here and then check. If I use the NVL2 function I was able to get the status flag, i.e. S or F.
    OPEN resultset_o FOR
    SELECT NVL2 (data, 'S', 'F')
    FROM version_master
    WHERE application_id = application_id_i;
    1.How the value of data being not null will determine Success of the api and how null failure
    2.If the above select statement goes in to exception when others how I will no the failure
    I have to achieve the above scenarios.
    Please advice me.

  • Looking for a good note taking app: Are there new features for the Notes app in iOS6?

    Hi,
    I've read that the Notes app with Mountain Lion will be available for OS X as well, and I was wondering if there will be any significant updates to the Notes app coming in iOS 6?
    The Notes app in Mountain Lion supports, as far as I know, text formatting, images and attachments. The Notes app in iOS 5 does not have any of these features, yet still it is claimed that the OS X client will sync with the iPhone, iPad and iPod touch. This means that there must be some rather significant updates coming for the Notes app in iOS 6 to match up with the features of its Mac counterpart. Still, no updates to the Notes app are listed in any of the iOS 6 feature lists I've seen so far.
    I'm looking for a good note taking app for OS X and iOS. I don't like how Springpad works, neither did Evernote work out for me, it's just too complex - I like Simplenote a lot though, it's just that its approach is too radical in my opinion. I was thinking that the Mountain Lion Notes app might be a good alternative because it combines simplicity with rich text formatting and attachments. I kind of hate the skeuomorphic user interface though.
    best, Ian

    You are only addressing other iPad users here & no Apple employees. We have no way of knowing, so you'll have to wait until iOS 6 is released.
    Here's some general info.
    Working with Notes and Documents on the iPad – Alternatives & Suggestions
    http://ipadacademy.com/2012/04/working-with-notes-and-documents-on-the-ipad-alte rnatives-suggestions
     Cheers, Tom

  • "Update All" not working in App Store - ios 7

    I seem to be having an issue with the App Store on my iPhone 5 lately, where the App Store says i have multiple updates available for my apps, when the "Update All" option at the top is greyed out and it cannot be selected. When i try to select Update now for each individual app, all it does is launch the app in question, but does not update it. I tried turning the phone on and off to no avail. The next thing i'm going to try is connecting to to my computer and let it update that way, but why wouldn't it work on the phone itself?

    Thread 14 Crashed:
    0   CoreFoundation                          0x30990a6a 0x3097f000 + 72298
    1   UIKit                                   0x333f694c 0x331ba000 + 2345292
    2   UIKit                                   0x333d4160 0x331ba000 + 2204000
    3   UIKit                                   0x333d3cda 0x331ba000 + 2202842
    4   SmartAuction                            0x0015c560 0x59000 + 1062240
    5   SmartAuction                            0x0015be9e 0x59000 + 1060510
    6   SmartAuction                            0x0015bb4c 0x59000 + 1059660
    7   Foundation                              0x31436c82 0x31368000 + 846978
    8   libsystem_pthread.dylib                 0x3b810c1a 0x3b80e000 + 11290
    9   libsystem_pthread.dylib                 0x3b810b8a 0x3b80e000 + 11146
    10  libsystem_pthread.dylib                 0x3b80ec8c 0x3b80e000 + 3212
    Thread 14 crashed with ARM Thread State (32-bit):
        r0: 0x00000000    r1: 0x00000003      r2: 0xfffffffd      r3: 0x00000005
        r4: 0x00000000    r5: 0x1788efa0      r6: 0x178a89c0      r7: 0x07699bc0
        r8: 0x178f8640    r9: 0x00000001     r10: 0x00000000     r11: 0x00000000
        ip: 0x3b98a86c    sp: 0x07699b8c      lr: 0x30990a09      pc: 0x30990a6a
      cpsr: 0x80000030

  • When I go to update my software using the app store download, it always asks for the previous user's ID, not mine.  Please help!

    When I go to update my software using the app store download, it always asks for the previous user's ID, not mine (my IT guy at school's-I am a faculty with admin priviledges).  I have signed in as me, have set the main preferences login user as me,and everywhere on the laptop I can use my apple ID except here.  It always shows me a greyed out ID of my IT.  How can I reset this to my ID? It doesn't give me an option to change the user ID, only a link to reset password.  I reset it, but it did not change the problem.  Can someone help me?

    It's not an ID problem, it's an ownership problem.
    When someone uses their personal Apple ID to buy and download content, the content is licensed to them and has their Apple ID engrained in it's DNA. It is an anti-piracy program. And when that personal Apple ID is used to setup a new Mac, it involves the Mac itself, the shipping OS and any pre-installed apps as well.
    It's not the correct way to handle Macs that belong to a business or an institution. And had it been handled correctly they would not now be in this predictument needing a drastic remedy.

  • Whenever I updated or downloaded a new app from the App Store, a message appears saying:   "Account Not In This Store Your account is not valid for use in the U.S. store. You must switch to the Swedish. store before purchasing."   I made some research onl

    Whenever I updated or downloaded a new app from the App Store, a message appears saying:
    "Account Not In This Store
    Your account is not valid for use in the U.S. store. You must switch to the Swedish. store before purchasing."
    I made some research online and asked a few of my friends with the same problem. All they did was sign out of iTunes from settings>iTunes & App Stores or from the App Store itself and signed back in. It worked for many of them but not with my iPhone 4s. It really does get on my nerves to always sign out and back in to the App Store as it sometimes works and allows me to update and download or most of the time it doesnt.
    When viewing my Apple ID account on my iPhone (after entering the password) it either views my account or says:
    "This Apple ID is only valid for purchases in the U.S. iTunes Store. You will be switched to that Store. Try your purchase again."
    So I press on OK then either switches me to the App Store app of its choice, or says "Cannot connect to iTunes Store".
    I tried restoring iOS6 hoping it was a bad installation, but i still have the same problem.
    Can anyone help me please?
    Arian

    Are you sure your AppleID is NOT tied to the US store? If you are trying to buy an app from the Swedish store you will be unable to do that. Some apps are only available on certain stores. That is why you get the "Cannot connect to the iTunes store" message when trying to buy that app. Your updates are being done from the US store ; thats why you can update sometimes and sometimes not.
    If you keep encountering problems contact iTunes support. They will help you sort it out.

  • Help on Procedure and trigger for updating(urgent please)

    SQL> / Table A
    CTUT_ID CTUT_COMPANY_NAME CURRT_USER_ID FMIS_ID CREATE_DA UPDATE_BY UPDATE_DATE
    1234 A 15-APR-03
    2222 B 15-APR-03
    3333 C 15-APR-03
    4444 D 15-APR-03
    5555 E 15-APR-03
    6666 F 15-APR-03
    150282 G oRACLE 23-APR-03
    1 H 15-APR-03
    2 I 15-APR-03
    3 J 15-APR-03
    150343 K TIGER 24-APR-03
    150305 L EXAMPLE 23-APR-03
    150342 M SCOTT 24-APR-03
    sQL >/ Table B
    Empno     Empname UPDATE_BY UPDATE_DATE
    1 AA
    2 BB
    3 CC
    4 DD
    What i need to do is i need to create an update trigger on both tables
    like create a procedure
    1)In procedure i need to check like
    IF TABLEA.CURRT_USER_ID = (SELECT USER FROM DUAL)
    THEN
    UPDATE_BY = (CURRENT_USER_ID of CTUT_ID)
    FOR EXAMPLE CURRENT USER_ID IS SCOTT THEN
    UPDATE_BY = 150342
    UPDATE_DATE = SYSDATE
    ELSIF
    UPDATE_BY <=> (CURRENT_USER_ID of CTUT_ID)
    THEN
    MESSAGE('USER IS NOT IN TABLE);
    END IF;
    and call that procedure in the update triggers
    FOR BOTH TABLES TABLEA,TABLEB
    i CREATED A PROCEDURE BUT IT IS NOT WORKING
    ANY HELP PLEASE
    CREATE OR REPLACE PROCEDURE UPDATE(
    UPDATE_DATE out DATE,
    UPDATE_BY out VARCHAR2)
    IS
    Uuser varchar2(20);
    Udate date;
    Ufound number(1);
    BEGIN
    SELECT USER,SYSDATE
    INTO Uuser,Udate from dual;
    SELECT count(*),CTUT_ID into Ufound,Uctut_id
    FROM TABLEA
    WHERE CURRT_USER_ID = Uuser
    Group by Ctut_id;
    IF (UFOUND = 1) THEN
    UPDATE_DATE := UDATE;
    UPDATE_BY := UCTUT_ID;
    END IF;
    EXCEPTION WHEN NO_DATA_FOUND THEN
    RAISE_APPLICATION_ERROR(-20001,'User Does not Exist');
    END UPD_CONSTITUENT;
    CREATE A TRIGGER :
    CREATE OR REPLACE TRIGGER TU
    BEFORE INSERT ON TABLEA
    FOR EACH ROW
    BEGIN      
    UPDATE(:NEW.update_date,
         :NEW.update_BY);
    END IF;      
    END;
    SQL> update TABLEA
    2 set CTUT_COMPANY_NAME = 'SCOTT TEST'
    3 WHERE FMIS_USER_ID = 'N';
    update TABLEA
    ERROR at line 1:
    ORA-04091: table TABLEA is mutating, trigger/function may not see it
    ORA-06512: at "UPDATE", line 12
    ORA-06512: at "TU", line 1
    ORA-04088: error during execution of trigger 'TU'

    Hi Mara,
    You are right thats what i want
    I have a table A
    EmpNo Empname Currtuser_id Update_date Updateby
    1 Denis Oracle
    2 Scott Scott
    3 Mara MMara
    1)what i need to do is when any user tries to update the table Table A
    Then the Trigger or procedure should check whether user is exits in table A in column currtuser_id
    If his user id exits in table A
    Then allow him to update the TABLE A
    and insert his EMPNO in UPDATE_BY
    and SYSDATE in UPDATE_BY
    He will do all this process using forms
    But i need to have trigger or procedure in database level for table
    2) I have another table like 10 tables
    Suppose TABLE B
    When user tries to update TABLE B
    Then the Trigger or procedure should check whether user is exits in table A in column currtuser_id
    If his user id exits in table A
    Then allow him to update the TABLE B
    and insert his EMPNO in UPDATE_BY
    and SYSDATE in UPDATE_BY
    3) I need to have a common Procedure and call that procedure in all tables in UPDATE TRIGGER
    Thanks for your help
    Thanks

  • I can't update the apps in my ipad once I try it update it says this update not for this Apple ID . I need help plz

    I can't update the apps in my ipad once I try it update it says this update not for this Apple ID . I need help plz

    Help please any one ?

  • I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so

    I am trying to update my software through the app store but for some reason an error occurs and will not allow me to do so. And when i go online to log into my apple id account it states that there is an error. Can someone help me solve this issue, its annoying me?

    Apple’s having trouble with the iTunes Store servers right now. Wait for them to resolve the issue.
    (123935)

Maybe you are looking for

  • Conditional display of value in funnel chart

    hi - I'm wondering if there's a way to turn off display of a single value in a bucket chart depending on the value of the "on change of" data value. So, just like you can change the color of the area depending on the value of the change or display va

  • Issues betw. PDFs created in Acrobat 7 and reviewed in Reader 10

    Due to constraints with our authoring system, we are limited to using Acrobat 7 to create PDFs and prepare them for review. Recently, our reviewers have not been able to add their comments into these PDFs. We don't know if this is a disconnect betwee

  • Is it possible to generate PDF 1.5 with linearization & initial view = bookmarks?

    Hello, I need to convert Office documents to PDF 1.5 (Acrobat 6) with the following properties: - Web view (linearization) - Initial view = Bookmarks panel and page. Each way I tried, in fact produced PDF 1.6 (Acrobat 7). Is it doable to to generate

  • Not able to send whats app message more than 3 minute's length

    Hi, I am getting one strange problem while trying to send a video through whats app in Iphone 6. Video length is more than 6 minutes i.e 6.53 minutes approx. but it always send only 3 minute video to the receiver. Steps: Open what app select contact

  • Puerto Rico implementation-Bank details Infotype

    Folks,             We are implementing Puerto Rico payroll. We are treating all the configuration as part of US. while I was testing employee hire, I noticed in bank details info type the "Bank country key" is defaulted to Puerto Rico I was expecting