Model object not gettting updated with mergeWithReferences()

I have a model object A that contains list of other models b as a collection.
I want to update object A using getTopLinkTemplate().mergeWithReferences(a) but it is not updating object a values in the database. The changes seems to be in the cache but when I check db, no changes at all.
Following debug statements clearly tells that UOW started but didn't run update SQL statement.
DEBUG [oracle.toplink.transaction] UnitOfWork(30070212)--begin unit of work commit
DEBUG [oracle.toplink.transaction] UnitOfWork(30070212)--end unit of work commit
DEBUG [oracle.toplink.transaction] UnitOfWork(30070212)--release unit of work
DEBUG [oracle.toplink.transaction] UnitOfWork(30070212)--release unit of work
Please help me update an object.
BTW, I am first pulling the model object for update, set new values in the model object and then try to merge but in vain.
Kindly help.
Zealous
Edited by: zealous on May 9, 2011 5:19 AM

Hello,
How are you reading in A, and what are you changing? Be sure that you read in A using a uow otherwise you might be changing the object in the cache - if you are changing the cache object, merge will be a no-op and nothing will have appeared to change. If you are modifying 1:m relationships, make sure that both sides are changed as the side that owns the foreign key controls the field in the database. If you are removing B's from the A, you will probably need to merge these Bs seperately, as any changes made to them will not get picked up since the merge will not be able to cascade to them once they are dereferenced.
Best Regards,
Chris

Similar Messages

  • Child CMP local object not getting refreshed with parent entity information

    Hi,
    I have a container mnaged relatioships (example) between Emp and Dept entities. I have generated their DTO and using them to tranfer data across layers.
    I am updating deptno CMP field of EMP entity and returning the Entity DTO. When extracting dept information like empLocalDTO.getDept_Deptno().getDname(), it's returning old department name.
    Can anybody help in resolving this problem of DeptLocal object not getting updated when setting deptno on EmpLocal entity?
    Session Bean updateEmp method code:
    EmpLocal local = (EmpLocal) getEmpLocalHome().findByPrimaryKey(dto.getEmpno());
    local.setDeptno(dto.getDeptno());
    local.setSal(dto.getSal());
    local.setJob(dto.getJob());
    EmpLocalDTO eDTO = new EmpLocalDTO(local);
    Servlet Code:
    localDTO = empLocal.updateEmp(localDTO);
    out.println("Dname : " + localDTO.getDept_deptnoDTO().getDname() + " <BR/>");
    Thanks

    I haven't personally seen this but Daniele Grandini in his article states:
    -          The
    ICMP latency between the Management Server and the Domain Controller is above 150 msec (this is no fixed rule)
    - This specific issue manifest itself when the Active Directory lookup takes more than 1000 msec (more or less);
    If the agents have been green (healthy) intermittently then it suggests that it is not a configuration issue as such with the agent but some sort of communication \ authentication issue. And that suggests you are seeing the same issue .. at present there
    isn't a straight forward workaround as you can't force the agents to use certificates to get around the problem. 
    The notes at the bottom of Daniele's article are not promising - http://nocentdocent.wordpress.com/2012/10/26/opsmgr-2012-agents-across-slow-wan-links-are-unable-to-communicate/
    Regards Graham New System Center 2012 Blog! -
    http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at
    http://systemcentersolutions.wordpress.com/

  • Dispute case does not get updated with subsequent partial payment

    Hi Experts
    I am now still testing the Dispute management .. but it's my first time to see that some times created dispute case does not get updated with the payment posted against the invoice which the dispute case has been raised .. when i trying to add open item to the current dispute case i face this Error..
    Process step 004: Change not possible, process step 003 missing
    Message no. UDM_MSG037
    Diagnosis
    The dispute case is to be changed by process step 004 from accounting. However, there is at least one process (for example, clearing transaction from payment or credit memo) that was performed before the current step and that has not yet updated the dispute case. The changes to the dispute case must be carried out in the correct order.
    System Response
    The dispute case could not be changed.
    Procedure
    In an asynchronous change to dispute cases using IDoc, make sure that all IDocs of the previous process have been posted. Then you can carry out the required action (for example, post the current IDoc from process step 004 or include further items). The immediate previous process step is 003.
    Your kind feed back is highly appreciated..
    Regards
    Mahmoud EL Nady

    Hi
    Thanks for straight forward solutions its now working properly after run the program.. thanks too much..
    also do i need to run this program periodically or once i notice that one dispute case it not getting updated?
    Regards
    Mahmoud El Nady

  • Open PO did not get updated with new price.

    A mass price change was updated in SAP for one of the supplier . All open orders did not get updated with this new prices.
    Can anyone tell me the reason why ?
    -Amol

    hi
    i think u have to do it manually
    logically if u see u can use diffrent prices in diff po
    if ur price is inr 100 in 1st po and u done gr ur rice will get updated in mm suppose it is 105
    next time u create the po of 110 rs  and done gr
    suppose ur price updated is 108 rs inmm
    so it is not happening that 108 is get updated in ur 1st po
    right so i think u have to update pos manually
    if i am wrong plz let me know
    regards
    kunal

  • Request not yet updated with datamart

    Hey guys,
    I am having trouble with an Upload.
    Some days ago I uploaded an Excel file in an ODS without any problems. Everything turns out green:
    Load: green
    Activation: green
    Yet the data is not in my Infocube yet, because when I run a query the data is simply not there.
    Now when I click 'manage data' on the ODS, I see this message that says 'Request not yet updated with datamart'.
    What can I do about this or what might be the problem?
    Thank you very much,
    Filip

    Hey Jürgen,
    I tried the "update 3.x" but it wasnt working.
    Next I tried to generate a datasource and to "update 3.x data", this 'worked' it didn't give me an error, but still my request is still "not yet updated with the datamart".
    Any ideas?
    Filip

  • KONV not getting updated with new condition type value

    Hi,
    I have created a new condition type for a pricing procedure. But table KONV-KAWRT is not getting updated with any value. Can anyone help me this.
    Thanks
    Shweta

    Hi Vasu,
    It was created in the same way then I have assigned calculation formula . For invoice it is comming fine but for the intercompany billing it is not showing any value in Contition tab for this particular condition type. For this when I checked in KNOV table it is showing condition type but the value (KONV_KAWART) is comming out zero and due to this reason it is not showing value in intercompany billing ->condition. Do I need to write code for this?
    Thanks,
    Shweta

  • Toshiba Model 40E220U - Not HDMI friendly with my Wii U

    My dad has a Toshiba HDTV (Model 40E220U) which is almost a year old from now. While it is HDMI-friendly with everything that is HDMI compatible, it is not being very friendly to my Wii U video game console, but only when it uses 1080p resolution graphics. When I play my Wii U at 1080i, it works perfectly fine.
    The problem with my dad's TV is that when I use my Wii U at 1080p resolution, I sometimes get 2-second screen black outs, and some static lines that follow up with the black-out problem. I tried resetting the TV to factory settings to solve the problem, but it didn't work. I even updated the TV recently, but it still didn't make it Wii U-friendly.
    To those of you who have a Wii U like me, are you facing this same problem? I also need Toshiba to know that our 40E220U TV model needs a new update to fix the problem I'm having with it. Thank you.

    You may want to call customer support at (800) 631-3811.
    - Peter

  • Model session not in sync with Http Session

    Hi All,
    I have an application developed in JDev 11.1.1.4 and we are not using ADF Security for login.
    The problem occurring is randomly some of the LOV on my home page are getting null (having no data). These LOVs are populated using the values passed as bind parameter from the login values (basically HTTP session values at web layer). So i added a method in all the task flow to set the session value at the model layer (default method) . Also on each call to the Am Impl call i am setting the value in the HTTP session and then invoking the method, but some how what happens is the Model level session value is not in sync with HTTP session and the list gets empty.
    Any inputs what i can do to get out of this prblm ?
    thnk

    In this case you need to overwrite the activateState/passivateState method of your am and store/reads the values from the xml structure you get as parameters to this methods.
    For more detailed information check the docs http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcstatemgmt.htm#sm0495
    By the way, this is nothing you need to open an SR on as it's working as designed.
    Timo

  • KINAK field in Table KONV not getting updated with value W

    Hi,
    I have a PO where I am deleting a line item.
    After I delet line item the field KINAK in table KONV gets updated with value W.
    But I am getting instance where in some cases the field KINAK is not getting updated.
    The result is deleted line item is getting populated in PO output also.
    Regards
    Nandiini

    KINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
    A     Condition exclusion item
    K     Inactive due to calculation basis/shipping material type
    L     Condition exclusion header or inactive at header level
    M     Inactive due to manual entry
    T     Inactive at header level
    W     The document item is statistical
    X     Inactive via formulae of incorrect
    X     Inactive via formulae of incorrect
    Y     Inactive because of subsequent price

  • ASN not gettting updated after Workorder completion phase

    Hi ,
    I am doing workorder collaboration scenario. But after completion of the phase and when i complete transportation phase (shipping) , ASN should get generated in the background and it should update the conformation control key with inbound delivery in Purchase order in ECC.
    But it is not happening , I dont know how to check whether the ASN is created in the background in SNC , The ASN is not getting updated in ECC in PO .
    Can anybody help me to resolve this issue.
    Thanks and Regards
    shailesh

    Hi Shailesh
    I think first step would be to check whether ASN is getting created in SNC - you may go to Web GUI -> Delivery -> ASN -> ASN Details. If you do not see any ASN there, the issue might be from supplier side.
    How are you bringing ASN to customer's SNC system  -
    1) Creating directly in Web GUI (as Nitin has mentioned)
    2) Bringing as XML message from supplier
    3) Using EDI or other third party system
    Thanks,
    Prasun

  • Excise table J_1IEXCDTL not getting updated with Excise Base value.

    Hi All,
    The the field EXBAS of table J_1IEXCDTL is not getting updated for ETT (Transaction Type) DLFC.
    For other transaction types, the same is getting populated.
    Is there a setting for controlling the same?
    If yes, can you please guide me.
    Best Regards
    Debaditya Ghosh

    First you should ensure that it is flowing in your billing document.  If so, automatically, it will also flow in your excise invoice and the field EXBAS will be updated accordingly.
    From your comments, it seems, the amount is not flowing in your billing document and excise invoice.  If so, ensure that you have assigned  the correct tax code in FV11 for your ED condition type.
    thanks
    G. Lakshmipathi

  • GenIL Model Attribute Structure not getting updated with new fields added

    Hi All,
    I have modelled the service interface using GenIL Modelling in Duet Enterprise 1.0. Later, I added some fields to the read operation in the Enterprise Services Builder in the ESR system.
    But in the Read Operation mapper method "/IWFND/IF_SRD_BOP_MAP_GET_OBJ~MAP_POST_GET_OBJECTS",  when I try to define an object of type GenIL model Attribute Structure (ZMDLZPRGET_DETAIL),  Iam unable to access the newly added fields in the read operation.
    In transaction " GENIL_MODEL_EDITOR ", under Root Objects, when I open the Attribute Structure name, only the old fields are available, newly added fields are not updated.
    But I was able to see the newly added fields in the READ OPERATION data types of Enterprise Services Browser in SE80.
    Please help me how to update the new fields for GenIL Model Attribute Structure(ZMDLZPRGET_DETAIL).
    Thanks,
    Kris

    Hi sap_wiz,
    Thanks for your reply.
    My problem solved,
    Thanks
    Kris

  • Screen Fields Not getting Updated with DYNP_VALUES_UPDATE

    Hi All,
    I am using FM DYNP_VALUES_READ to read the screen field values and then modifying those values and passing the modified table to DYNP_VALUES_UPDATE. But the problem is screen fields are not populated with these values . The values I wish to populate are footer values . I am using OO ALV for this wherein I am handling an event for filter of records and accordingly I need to modify my footer. Any Suggestions??
    *&      Form  footer
          Caslculate Total items, number of hits/Miss and percent MSP
    -->  p1        text
    <--  p2        text
    FORM footer .
      CLEAR : io_totitems,
              io_tothit,
              io_totmiss,
              io_permiss.
    IF NOT l_flag EQ 1.
    Get total items
      DESCRIBE TABLE i_outdata LINES io_totitems.
      LOOP AT i_outdata INTO wa_outdata.
      calculate number of hits
        IF wa_outdata-hit_miss  = 'HIT'.
          io_tothit = io_tothit + 1.
        ENDIF.
      calculate number of Miss
        IF wa_outdata-hit_miss  = 'MISS'.
          io_totmiss = io_totmiss + 1.
        ENDIF.
        CLEAR wa_outdata.
      ENDLOOP.
    calculate percent MSP
      io_permiss = ( ( io_totitems - io_totmiss ) / io_totitems ) * 100 .
      IF l_flag EQ 1.
        wa_dynpread-fieldname = 'IO_TOTITEMS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTHIT'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_TOTMISS'.
        APPEND wa_dynpread TO t_dynpread.
        wa_dynpread-fieldname = 'IO_PERMISS'.
        APPEND wa_dynpread TO t_dynpread.
        CLEAR wa_dynpread.
        d020s-prog = sy-repid.
        d020s-dnum = sy-dynnr.
        CALL FUNCTION 'DYNP_VALUES_READ'
                EXPORTING
                   dyname               = d020s-prog
                   dynumb               = d020s-dnum
                   translate_to_upper   = 'X'
              REQUEST              = ' '
                TABLES
                   dynpfields           = t_dynpread.
        MOVE io_totitems TO io_totitem.
        CONDENSE io_totitem NO-GAPS.
        MOVE io_tothit TO io_tothits.
        CONDENSE io_tothits NO-GAPS.
        MOVE io_totmiss TO io_totmis.
        CONDENSE io_totmis NO-GAPS.
        MOVE io_permiss TO io_permis.
        CONDENSE io_permis NO-GAPS.
        LOOP AT t_dynpread INTO wa_dynpread.
          CASE: wa_dynpread-fieldname.
            WHEN 'IO_TOTITEMS'.
              wa_dynpread-fieldvalue = io_totitem .
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTHIT'.
              wa_dynpread-fieldvalue = io_tothits.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_TOTMISS'.
              wa_dynpread-fieldvalue = io_totmis.
              MODIFY t_dynpread FROM wa_dynpread.
            WHEN 'IO_PERMISS'.
              wa_dynpread-fieldvalue =  io_permis .
              MODIFY t_dynpread FROM wa_dynpread.
          ENDCASE.
          CLEAR wa_dynpread.
        ENDLOOP.
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = d020s-prog
            dynumb               = d020s-dnum
          TABLES
            dynpfields           = t_dynpread
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    Get all fotter details in a internal table
    this is used to download footer in Excel
      wa_footer-fldname = 'Total Items '.
      wa_footer-value = io_totitems.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of HIT'.
      wa_footer-value = io_tothit.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Number of MISS'.
      wa_footer-value = io_totmiss.
      APPEND wa_footer TO i_footer.
      wa_footer-fldname = 'Percentage MISS '.
      wa_footer-value = io_permiss.
      APPEND wa_footer TO i_footer.
      CLEAR wa_footer.
    ENDFORM.                    " footer

    data: t_dynfields1 type table of dynpread with header line.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    translate_to_upper = 'X'
    REQUEST = ' '
    TABLES
    dynpfields =  t_dynfields1.
    <b>read table t_dynfields1 index 1</b> “ I hope this is missing
    I will be selecting from a list .
    Because once the value is read we need to update the screen field with that value .
    Here the selected value will be in the first place
    Now
    Your operation is to populate the fields with some variables .
    In the same when I do this there is only one value then
    Im expecting only one entry here …
    LOOP AT t_dynpread INTO wa_dynpread.
    CASE: wa_dynpread-fieldname.
    WHEN 'IO_TOTITEMS'.
    wa_dynpread-fieldvalue = io_totitem .
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTHIT'.
    wa_dynpread-fieldvalue = io_tothits.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_TOTMISS'.
    wa_dynpread-fieldvalue = io_totmis.
    MODIFY t_dynpread FROM wa_dynpread.
    WHEN 'IO_PERMISS'.
    wa_dynpread-fieldvalue = io_permis .
    MODIFY t_dynpread FROM wa_dynpread.
    ENDCASE.
    CLEAR wa_dynpread.
    ENDLOOP. */
    Comment this for a while and
    Change the code as
    t_dynfields1-fieldname = ' '. "<--- header name
    t_dynfields1-fieldvalue = ' '."<----val  
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    t_dynfields1-fieldname = ' '.
    t_dynfields1-fieldvalue = ' '.
    append t_dynfields1.
    And check .
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = d020s-prog
    dynumb = d020s-dnum
    TABLES
    dynpfields = t_dynfields1.
    regards,
    vijay

  • EKPO table not getting updated with PR numbers

    Hi All,
    PR and PO is created in APO and then transferred to R/3 system. For all these POs, we can see the PR number in the PO display(ME23n) but when we see in the EKPO table the PR number is missing.
    Any pointers as to why this is happenning? whether any SAP notes needs to be implemented?how we can make that PR is updated in EKPO table also?
    Any feed abck will be highly appreciated.

    Hi,
    The problem with having the EKPO hold the requisition number is that you then only have the ability to store ONE PR number.
    By storing them on the delivery schedule lines you have the ability to have as many as you like and so you should be looking for these on the delivery schedule lines on the PO item and not on the item itself.
    Steve B

  • IPhoto not being updated with photo stream

    I have photo stream turned on and used to get the photo stream pictures taken with my iphone but since the update to ML I haven't been able to see the new pictures on my photo stream. I know they are there because both my iphone and ipad can see the stream. iPhoto cannot. Anyone else have this problem and if you fixed it can you tell me what you did? Thanks.

    In the system preferences turn PhotoStream off and back on
    LN

Maybe you are looking for

  • IPhone playlists no longer working - iOS 8.02

    Upgraded to IOS 8.02 last night. This morning on the commute to work my playlists are all 'greyed out', uneditable and I cannot create new playlists. Also, the shuffle feature has disappeared. Extremely annoying as no longer can listen to music on iP

  • Premiere elements 9 and windows 7 64 bit, installation and startup

    Installing pre 9 on my Dell Studio x64 with the mcAfee software did not work. I had to use msconfig to use selected start without mcAfee security center and adobe software, plus other software that had photoediting - before that I could not start pho

  • How do I get Facebook to link with games?

    I have games that I play on my PC, but they won't link up on the iPad. I am sign into FB. Just can't figure it out. Please help.

  • Af:panelaccordion with dynamic number of af:showDetailItem (af:iterator)

    Hi, Jdev 11.1.1.2.0. We need a panel accordion displaying a master-detail relation. The af:showDetailItem displays the text of the master table. To create a af:showDetailItem for each master record I want to use af:iterator but this seems to be an in

  • Fluid layout problem

    I have decided to rebuild my site from a fixed with layout to fluid/responsive. So far, I've set up a test page with a fluid layout, but it's not working as expected. See http://www.perberntsen.com/responsive_test.html The relevant css is in the page