I want to update line level record in form

Hi
I have two blocks 1st Header block and 2nd Line level block.
When i update line level block then changed data should get updated in the respective table.
So my question is on which trigger/event i should wirte code to so that it will work.
Thanks in advance..
Thanks & Regards,
Manoj
Edited by: ManojT on May 6, 2009 11:40 PM

Hi,
Oracle Apps standard Save icon will fire trigger KEY-COMMIT at form level.
If current block has a KEY-COMMIT trigger at block level, forms will fire this one. In this case, an eventual KEY-COMMIT trigger at form level will be overridden/fire after/fire before then one at block level depending on property "execution hierarchy" of the block level KEY-COMMIT trigger. Same thing for an eventual KEY-COMMIT trigger at (current) item level.
Hope can help
Mariella

Similar Messages

  • How can i display recent update/delete/insert records in form

    Hai !!!!
    i am new for forms,.......any body tell me, how can i display recent no of records updated or no of records deleted or no of records are inserted in a form. these records count are display in display items....give me detail explination......
    Subbu.....

    the easiest way is copy and paste the oracle-forms example from the OU.
    You need form-level-trigger ON-ERROR + ON-MESSAGE, POST-INSERT, POST-UPDATE, POST-DELETE, three global variables and a procedure:
    ON-ERROR
    handle_message( error_code, 'ERROR: ' || ERROR_TYPE || '-' || TO_CHAR(ERROR_CODE) ||': '|| ERROR_TEXT );
    ON-MESSAGE
    handle_message( message_code, MESSAGE_TYPE || '-' || TO_CHAR(MESSAGE_CODE) || ': ' || MESSAGE_TEXT );
    PROCEDURE handle_message( message_number IN NUMBER, message_line IN VARCHAR2 ) IS
    BEGIN
        IF message_number IN ( 40400, 40406, 40407 )
        THEN
          DEFAULT_VALUE( '0', 'GLOBAL.insert' );
          DEFAULT_VALUE( '0', 'GLOBAL.update' );
          DEFAULT_VALUE( '0', 'GLOBAL.delete' );
          MESSAGE('Save Ok: ' ||
            :GLOBAL.insert || ' records inserted, ' ||
           :GLOBAL.update || ' records updated, ' ||
           :GLOBAL.delete || ' records deleted !!!' );
          ERASE('GLOBAL.insert'); 
          ERASE('GLOBAL.update');
          ERASE('GLOBAL.delete');
        ELSE
             MESSAGE(message_line );
              END IF;
    END;
    POST-INSERT
    DEFAULT_VALUE('0', 'GLOBAL.insert');
    :GLOBAL.insert := TO_CHAR( TO_NUMBER( :GLOBAL.insert ) + 1 );
    POST-UPDATE
    DEFAULT_VALUE('0', 'GLOBAL.update');
    :GLOBAL.update := TO_CHAR( TO_NUMBER( :GLOBAL.update ) + 1 );
    POST-DELETE
    DEFAULT_VALUE('0', 'GLOBAL.delete');
    :GLOBAL.delete := TO_CHAR( TO_NUMBER( :GLOBAL.delete ) + 1 );try it
    Gerd

  • HT5622 3 updates in the store wants to update with apple id from former apple owner. How can I turn of those updates?

    I have a second hand Imac. Super! But I alway get notice that there are update for me, from apps that the former owner has purchased. I want to update with my own Apple Id or do not want the update notifications. I tried to remove the app and install it again, but that did not remove the problem.
    Can somebody give me advice how to solve this? In Dutch language or English.
    Best Xmas wishes

    Welcome to Apple Support Communities
    You cannot remove the update notification. The only solution would be to remove those apps and do not install them anymore unless you buy them with your Apple ID.
    If the apps you cannot update are iPhoto, iMovie and GarageBand, you should know that the first owner did not do things properly, because that could be solved simply by deauthorizing your Mac from the old owner's Apple ID. After doing that, you would be able to register the apps with your Apple ID and update them free of charge. If this is your case, contact with the old owner and tell him/her to contact with Apple to deauthorize the Mac > http://support.apple.com/kb/HE57
    If the apps that require the update are other ones, remove them. You are not allowed to run them, so if you want to run them, buy them with your Apple ID

  • Remove UDO line level record

    Hello All:
         Have a UDO with master line objects, trying to do a right click and delete the line. Have two problems right now.
    1. how to delete some of the pre-existing menu on the right click? UDO come standard with remove (which I don't want). copy and paste which is ok..I can lock out dataevent to say you can not delete a record. But is there a way to delete that on the menu as well?
    2. On updating existing records, when I use the dbdatasource.removerecord, it works fine until the laster records, and it give you a error message that you can not update null value in code in line table. Does anyone know how to handle that?
    3. Does any have sample code on only doing CFL on find mode. LIke in BP master where you can find BP code on the cardcode field with CFL but it disappear in other mode???Thanks

    Hello Bo,
    1.Remove the "Remove" from the-right click context menus
    Private Sub SBO_Application_RightClickEvent(ByRef contextMenuInfo As SAPbouiCOM.ContextMenuInfo, ByRef BubbleEvent As Boolean) Handles oApp.RightClickEvent
            If (oApp.Forms.ActiveForm.TypeEx = "Your_UDO_FORM_Type") Then           
                If (contextMenuInfo.BeforeAction = True) Then
                    'Remove the "Remove" from the-right click context menus
                    contextMenuInfo.RemoveFromContent("1283")
                End If
            End If
        End Sub
    2.You should make sure the datasource and UI is synchorized.
    DBDataSource.RemoveRecord()
            oMatrix.FlushFromDatasource()
    3.Atually CFL will dispear in Find Mode. It is B1's system behavior. Please refer to Sales Order in Find Mode.
    Kind Regards, Yatsea

  • How to call function behind the button and update only specific record

    Greetings,
    1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
    1 select list : select area
    2 select list: select product
    3- select list - size of the product
    i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
    Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
    2- second thing i creared tabular " select user_id, product_name, product_type from product".
    by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
    i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
    Edited by: Omzz on Oct 2, 2012 11:28 PM

    If I understand what you are trying to do is correct you could possibly do this by:
    Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
    CREATE OR REPLACE TRIGGER copy_records
    AFTER INSERT ON table a
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    BEGIN
    INSERT INTO table b
    VALUES :NEW.col1, :NEW.col2 etc......
    END;
    There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
    Chris

  • How to update all condition records at a time with some percentage or some

    Dear Sir,
    In PRD system we have more than 600 condtion records.
    Noe desiel hikes happend, due to that client want to update all condition records(600) at a time with required percentage or required value.
    How to update all records at a time
    With regards
    Lakshmikanth

    Hi,
    Through BDC or LSMW first you have to do the recording for particular transaction code and then base on that u have to prepare the flat file to upload the file for the same.
    For BDC programing you have to take the help of ABAP progmer but LSMW you can also do.
    For more information about LSMW plz go to following link :
    [LSMW |http://www.slideshare.net/arun_bala1/sap-sd-lsmw-legacy-system-migration-workbench/]
    [Step-by-Step Guide for using LSMW|www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc ]
    BDC
    [BDC Call Transaction|http://www.sapdevelopment.co.uk/bdc/bdc_ctcode.htm]
    [BDC Recording|http://www.sapdevelopment.co.uk/bdc/bdc_recording.htm]
    But it would be better for you to please contact to your ABAPer for BDC programming.
    Cheers...

  • Update of the record in the dbtable

    Hi all,
    I want to update the particular record in the dbtable.
    for example.
    I want to change one field ( status field in catsdb table).
    that field contains status 20.
    now i want to change the status field from 20 to 30.
    so that how to write the correct syntax for that.
    thanking u.
    regards,
    giri.

    HI,
    Check this code
    TABLES:BKPF,J_1IPART2.
      PARAMETERS:P_FAWREF LIKE J_1IPART2-FAWREF,
                 P_FAWRE1 LIKE J_1IPART2-FAWREF.
      DATA: P_FAWREF2 LIKE J_1IPART2-FAWREF,
            P_FAWRE3 LIKE J_1IPART2-FAWREF.
       MOVE P_FAWREF TO P_FAWREF2.
       MOVE P_FAWRE1 TO P_FAWRE3.
      UPDATE J_1IPART2 SET FAWREF = P_FAWRE3
                        WHERE FAWREF = P_FAWREF2.
           IF SY-SUBRC = 0.
             MESSAGE S000.
           ELSE.
             MESSAGE E001.
           ENDIF.
    regards
    siva

  • Update vendor info records

    Hi
    I want to update vendor info record when Po history has been changed. Please tell me is there any User exit or badi available.
    Regards
    Ravi

    Hi,
    Check  Note 446608 'MEMASSIN: you cannot select net price EINE-NETPR', it will help you.
    Regards,
    Eduardo

  • Unable to update and delete record in table

    Hello All,
    Kindly help me regarding the below mentioned issue plz
    When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
    Any suggestion

    Hello
    More explanation is as under:
    1. I am working on only one table say A
    2. Wants to update only one row of Table A at one time in single user envoirment.
    3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
    4. I drop the table and re-create the table again but problem persist.
    Any advice plz.

  • C-Media Line In record

    Hi there, just a quickkie. Has the O/B C-Media soundcard got an "auto" audio in level record? I have set the sound properties all through the C-Media device, and am recoerding from the record player to the soundcard. If I set the line in record level to "0", it still records well into the red on the VU meter thingy. Turning the output of the source down makes no difference.
    I carnt see anywhere in the settings to adjust the Line in record level manually.
    Cheers Chris

    Thx reilly. I am using cool edit2000 to do the recording, but have tryed it with total recorder as well. When its recording the source, I can adjust the line level record volume (In windows sound prop), and the sound level from my PC speakers responds accordingly, however, it has no effect on the "VU" meter of the recording software
    Its recording into the red, not by a lot, but when the record is played from the source record player thru its own speakers, theres no distortion in the "Louder parts" of the song.
    When I have done a recording of the same song onto the PC, as a wave or mp3 files, its distorting at the "Louder" parts.
    When recording, I have all the Volume levels in Windows on "0" in the windows sound properties. The sound card still still records the song tho, but at levels a bit higher than I'd like (distorts on playback on Louder parts), and that makes me think that there is "auto" line level record on this soundcard.
    Can u suggest another recorder software to try out.
    Cheers Chris

  • Line level remarks for Posting Templates

    We have a client that would like to add line level remarks to their posting templates so the resulting journal entry lines have the appropriate remarks defaulted.
    When the posting template is selected within a journal entry the line level remarks would default in the same manner as the GL Account, Project, Profit Centre etc.

    Naimesh;
    Thank you - this one is now solved.
    I didn't understand what you were saying at first, but I just looked at VBPA with SE16N, and now I understand what you are trying to say.
    To help those out in the future, what Naimesh is saying is that the record for line 10 didn't really exist in my first example and thus is "referenced".  Here is a better example with 3 lines and their VBPA records for the same order number:
    <b>3695          YC          200346               24358          US     D</b>
    <b>3695     10     YC          200156               24156          US     D</b>
    <b>3695     30     YC          202617               26691          US     D</b>
    As one can see, there is no line 20.  Thus, when the header changes, it "changes " line 20 in appearance because the screen pulls it from the header because the line-level record does not exist.  So, all I have to know is whether the record really exists or not and thus "track" the change.  I will have to add some type of indicator to my records to indicate if the record is really there or not.

  • I want to update multiple record in database which is based on condition

    hi all,
    I am using Jdev 11.1.2.1.0
    I have one table named(Pay_apply_det) in this table i want to update one column named(Hierarchy) every time and according to change i want to update or i want to maintain my log table named(pay_apply_appr).It based on level wise approval when the lowest person approve the record show on next level but if the second
    level person back it will be show only previous level hierarchy.And when the final approval happen the Posting_tag column of pay_apply_det will be updated too with hierarchy column.
    i have drag pay_apply_det's data control as a table in my .jsf page and add one column approve status in UI .in the approve status i used radio group which return A for approve B for back R for reject through value binding i make it get or set method in it baking bean.
    in backing bean class i have written code
        public void approveMethod(ActionEvent actionEvent) {
            ViewObject v9=new UtilClass().getView("PayApplyDetView1Iterator");
            int h5=0;
            Row rw9= v9.getCurrentRow();
            String x=(String) rw9.getAttribute("RemarkNew1");
            System.out.println(x);
            String z=getR2();
            System.out.println(z);
            if(( z.equals("R") || z.equals("B") )&& x==null)
                FacesMessage fm1 = new FacesMessage("Plz Insert Remark Feild");
                fm1.setSeverity(FacesMessage.SEVERITY_INFO);
                FacesContext context1 = FacesContext.getCurrentInstance();
                context1.addMessage(null, fm1);  
            else{
            ADFContext.getCurrent().getSessionScope().put("Radio",getR2().toString());
            String LogValue=(String)ADFContext.getCurrent().getSessionScope().get("logid");
            ViewObject voH=new UtilClass().getView("PayEmpTaskDeptView1Iterator"); 
            voH.setWhereClause("task_cd='449' and subtask_cd='01' and empcd='"+LogValue+"'");
            voH.executeQuery();
            Row row1= voH.first();
            int h1=(Integer)row1.getAttribute("Hierarchy");
              System.out.println("Login Person Hierarchy on save button press.."+h1);
            ViewObject vo9=new UtilClass().getView("PayApplyDetView1Iterator");
            Row row9= vo9.getCurrentRow();
            if(getR2().equals("A")&& h1!=1)
             row9.setAttribute ("ApprHier",h1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            else if(getR2().equals("B") ) {
                ViewObject voO=new UtilClass().getView("LoHierViewObj1Iterator");
                voO.setNamedWhereClauseParam("QHVO", LogValue);
                Row rowO = voO.first();
               h5=(Integer)rowO.getAttribute("LPrehier");
                System.out.println("Back lower hier..."+h5);
                row9.setAttribute ("ApprHier",h5);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
              else if((h1==1) &&(getR2().equals("A")) )
                      row9.setAttribute ("PostingTag","Y");
                      row9. setAttribute ("ApprHier", h1);
                        row9.setAttribute("IsClaimed","N");
                        row9.setAttribute("ClaimedBy",null);
                        row9.setAttribute("ClaimedOn", null);
              else if(getR2().equals("R"))
                row9.setAttribute ("ApprHier",-1);
                row9.setAttribute("IsClaimed","N");
                row9.setAttribute("ClaimedBy",null);
                row9.setAttribute("ClaimedOn", null);
            BindingContext BC=BindingContext.getCurrent();
            BindingContainer ac=BC.getCurrentBindingsEntry();
            OperationBinding ob=ac.getOperationBinding("Commit");
            ob.execute();
           vo9.executeQuery();
            FacesMessage fm = new FacesMessage("Your Data Successfully Commited..");
            fm.setSeverity(FacesMessage.SEVERITY_INFO);
            FacesContext context = FacesContext.getCurrentInstance();
            context.addMessage(null, fm);
        }here i put my approve status radio value in session variable because i also want to update my pay_apply_appr table which code i written in pay_apply_det IMPL class.
    Every thing is running well when i update single record but when i want to update multiple record then my current row only updated in pay_apply_det but log table( pay_apply_appr) created for all record.
    so is there any solution plz help me.
    thanks
    RAFAT

    Hi Rafat,
    If you are able to insert into, all you need to do is iterate through the rows. For this , before the first IF condition
    if(getR2().equals("A")&& h1!=1)Get the row count using int numRows =vo9.getRowCount(); , and then write it before the IF condition
    if (int i=0;i<numRows;i++} After
    row9.setAttribute("ClaimedOn", null);
            }write vo9.next(); to iterate to next row,
    Hope this will work.
    Nigel.

  • How to update tolerence at po line level...?

    Hello All,
    I want to update tolerance on PO line level, I Searched for API/Interface to update that field but i didnt found any API for that.
    Could anybody suggest me how can I update this field....? Please help
    Thanks in Advance.
    Thanks
    Ravi Raj.

    Hi,
    This can be done by personalize the BWC screen by clicking on the personalization at the top left corner.
    Regards,
    Kamal Khafagy

  • Ship to Address at line level not Updating to Ship to address at header

    Hi All,
    While Importing Sales Orders using DTW ,The Order header is correctly updating the logistics  Ship to address we mentioned in Address2 Filed . However, the lines is defaulting the shipto address from the Business Partner.The Lines needs to show the same address as the header.
    Issue is in SAP 2007 A SP-01 PL-10.
    Thanks,
    Neetu

    HI Gordan,
    Thanks for reply.
    We are setting ship to code as blank at header level and specifying ship to description.We want similar to be copied to line level.
    When entering Orders manually,it is updating corretly but when importing using DTW taking address from BP for LIne Items.
    If it updates correct address manually entering orders ,it should update while importing using DTW.
    Thanks,
    Neetu

  • Line-level audio recording via headset jack

    I'm interested in using my Touch to run the "FourTrack" app - but want to record line-level rather than via a mic. (I'm not very technically minded.)
    Is there any reason that I can't use an "iPOD VIDEO / HIFI CABLE, 3.5mm RCA to AUDIO VIDEO AV TV Cable for IPOD Video Photo Nano Mini" (as it is described on Amazon) and use the video RCA plug (the yellow one) for my audio in.
    (I guess that the touch expects a mic-level input, rather than line-level. I'll be getting a DI Box if that assumption is correct.)

    Hi PeterPa,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    You could also try clearing the Smart Connect application to see if this app based,
    Menu > Settings > Apps > All > Smart Connect > Clear Data 
    let us know how you get on.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

Maybe you are looking for

  • Closing Issue of P&L a/cs

    Hi, I'm using SAP B1 2007 B  PL:07 from the last financial year(2008-09). But, after last year closing ,the system still showing the closing balances of P&L Accounts(i.e.- Sales & Expenditure a/cs) as on 01/04/09. Whereas, only balance sheet a/c bala

  • OWA iview

    Hello all, When accessing the Outlook Web Access(OWA)2003 by url, it works fine.  But when I tried to create the url iview and pointing to the same owa url, it does not work.  Did I miss any other configuration? can i integrate the whole OWA into the

  • XML Forms - news message - send content as mail

    Hi all, our customer would like to have the possibility to send an XML forms news item by mail. Not just a mail with the link to the news item, but the content has to be displayed as HTML into the mail body. Has anybody implemented this before or kno

  • PO Charge a/c for expense stockable item

    For an expense stockable item, the PO Charge account gets defaulted from the Expense a/c defined at the Inventory Org level, and this cannot be changed. However, I would like to change the cost center manually while creating PO, in order to track the

  • Mozilla crashes every time I try to download an attachment to an email. How can I correct or stop this happening?

    This only appears to happen when I try to download attachments to emails