How to manage Constraints for Non-Composition Associations?

Hi
Assuming the following Situation:
Company - Entity with Primary Key Attribute CompId
Person - Entity which is associated to Company as a detail via a NON-composition association ("employedAssoc") using Attribute CompId.
PERS_COMP_FK - a database foreign key between the tables of Company (master) and Person (detail) making sure Person is not employed at a non-existing company.
Now I want to implement a code which sets the FK-Attribute CompId in Person to <null> (unemployed) if Company is deleted (bankrupt). I tried the following code, implemented in Company:   public void remove()
    // set Attribute CompId in Person to null
    RowIterator iter = getPersons();
    while (iter.hasNext())
      PersonImpl person = (PersonImpl) iter.next();
      person.setCompId(null);
    // remove Company
    super.remove();
  }Unfortunately this code throws oracle.jbo.DMLConstraintException: "Constraint PERS_COMP_FK violated during post operation: "DELETE FROM Company WHERE COMP_ID = :1" "What's going wrong here?
Any hints are welcome
Thanks
Frank Brandstetter

Well, I don't think it is a bug.
When you set the foreign key to null, you are already INSIDE the postChanges process. I don't really see what the framework should do. Stop the post on one entity and take another one? No idea...
If you perform a custom action BEFORE triggering commit/post where you set the foreign keys to null, this might work properly (if compositions are present). Though...
HTH,
Adrian

Similar Messages

  • Configuration Managment Pack for Non Oracle Systems (new)

    Hi ,
    There is a pack called "Configuration Management" for the database. This pack manage hardware , software , updates, patches, etc for host that have installed any Oracle Software.
    Now, in EM Release 2 there is a new pack "Configuration Managment Pack for Non Oracle Systems" wich basically will allow me to the same but without the requirement to have any Oracle software installed.
    The question is : Where can i find a white paper about it? i been looking around and there is only mentions of the product, but not extra info. I know is out already 3k p/processor..
    Any ideas?
    Sergio Benavides

    Found this dated Oct 2005
    (Note the "priced in Advance of Availability" piece)
    Standalone Managers
    Configuration Management Pack for Non-Oracle Systems (priced in Advance of Availability) 2.375 522,59 Per Processor -
    Provisioning Pack (priced in Advance of Availability) 2.375 522,59 Per Processor -
    Service Level Management Pack (priced in Advance of Availability) 79 17,42 Test -
    (Must license with Beacon Plus Test pricing) 2.375 522,59 Beacon -
    System Monitoring Plug-in for Hosts (priced in Advance of Availability) 1.188 261,29 Per Processor -
    System Monitoring Plug-in for Non Oracle Databases (priced in Advance of Availability) 1.188 261,29 Per Processor -
    System Monitoring Plug-in for Non Oracle Middleware (priced in Advance of Availability)
    25 1.188 261,29 Per Processor -
    System Monitoring Plug-in for Network Devices (priced in Advance of Availability)
    26 1.188 261,29 Per Network Device -
    System Monitoring Plug-in for Storage (priced in Advance of Availability)
    27

  • How to manage apps for lots of devices

    Hi, I work @ all college in AU. We are implementing ipads as a study tool. Initially the ipads will be set up by the college, then distributed to the students to keep.
    My question is about how to manage apps for so many devices. For example we have 2 apps that need to be installed for 150 units to begin with. This could get quite messy I would think. Has anyone had any experience with this sort of volumes? Any and all input would be greatly appreciated.

    Look in the forum above this one...
    http://discussions.apple.com/thread.jspa?threadID=2594001&tstart=0

  • How to setup EWA for non-ABAP system with SM 4.0 ?

    Hi, we are running SM 4.0 with the support-stack 06. I have set-up a solution for monitoring which includes a NW04 WebAS 6.40 Java only system. Has anyone set-up EWA reports for this type of non_ABAP system who can advise of the steps necessary for this ?
    It seems like you need to define RFC destinations for where the monitored system data should be collected from , but there doesn't appear to be anywhere to do this for non-ABAP systems ?
    I have looked at Note 738676 - Service Data Download for Non-ABAP Components but it hasn't helped and it seems to be SDCC specific, rather than SDCCN.
    Thanks.

    Hi Andrew,
    we are just developing it, at the moment you have the following option, your java system has to send by ccms agends its data to an ABAP 640 system or higher, there you can see its alerts in ccms, then you have to make both system available in SMSY. Then important you have to assign the java system as a system component, then we collect also the java data and shows them in the EWA of the ABAP system. There for go to the main instance tab and set a java main instance to relevant and assign your java system.
    This is the old, available standard solution. At the moment we develop it also for java stand alone.
    I think it will be available with the new ST-SER in autumn
    Regards,
    uDo

  • How to use Quickbooks for non-profit on mac

    I run a non-profit and need to use QUickbooks for non-profit but this version of quickbooks is only made for PC. Is there a way I can run this software on my mac? Does Virtual PC software for macs work well? ANyone run Quickbooks for PC on a mac? Is there any other way to do this?

    Artist --
    Welcome to Apple Discussions !
    I would highly recommend that you get the Mac version.
    You can find more about it here
    http://quickbooks.intuit.com/
    Virtual PC slows everything down tremendously.
    Plus, it opens your Mac to be vulnerable to viruses.
    Get the Mac Version.
    It's worth the investment,
    in my humble opinion.
    Hope this helps,
    and sending you all the best wishes
    for your non-profit.
    I'm a former nonprofit staffer, so I know what you're up against.
    Onwards & upwards !

  • How to correct journals for non inventory items

    Hi All,
    One of my client by mistake made a non-inventory item as an inventory item and used FIFO valuation.
    Now he has created some 30 purchase invoices, goods receipt PO for it in the last month.
    While doing month end they reconcillation they realized the inventory numbers are bloated and found this problem.
    Now they have cancelled the old item defination and created a new one.
    But the problem is how to correct the journal entries for the what has already been done.
    Problem is that Cost of this item is wrong because it got created as a inventory item and was using FIFO.
    Please suggest a fastest route to correct this problem.
    Regards,
    Divam

    Hi Divam........
    I guess Inventory revaluation is not possible in case of Non Inventory Item. You must take the goods return on GRN basis......
    Regards,
    Rahul

  • How to convert PRs for non-stock items through ME57

    Any idea how a PR for a non-stock item (just text) charged to a cost center can be converted into a PO through ME57?

    Hi Jürgen,
    Its requiring an information record when I enter a fixed vendor. Problem is I cannot create an info record because it is a text item (no material number necessary).
    Cheers.

  • How to manage credit for same customer in different sectors

    Dear Gurus,
    Here is the scenario,
    My client   have four different sectors but a customer can buy from multiple sectors.The credit management for the same customer must be handled  differently for each sector.The credit exposure for all sectors should be different
    So how can we segregate this in sap credit management for only one customer master
    Regards,
    Sam Ahmed

    Credit Control Area Is set at 2 places:
    - @ Company Code (OBZK)
    - @ Sales Area (OVFL)
    You need to have different Credit Control Area based on your requirement, align with the sales areas you want differentiate. 
    To do so, follow IMG in following path or use TCode OVFL.
    SPRO - Enterprise Structure - Assignment - Sales & Distribution - Assign Sales Area to Credit control area
    Also, make sure in
    - Customer Master (XD02) for the desired sales areas you need specify the credit control area in the sales area data.
    - And in FD32, maintain different credit limit based on Customer & Credit Control Area.
    For reference you can refer consulting for configuration SAP Note 18613 - Checklist for Credit Management.
    And SAP Note 425483 - Consulting note collection: Credit checks.
    With Best Wishes
    JP

  • How to manage shortcuts for different desktops

    If you've set up multiple desktops (e.g., via Mission Control), how can you manage shortcuts independently?
    It would be nice to have a dedicated desktop for:
    Games
    Multimedia / Photo / Video
    Graphic Design
    Programming / Development
    Writing
    Tutorial Recording
    We can start applications in a particular screen, since Snow Leopard, similar to what Linux has been able to do for some time; however, these screens are not really desktops, since we can't dedicate certain shortcuts/icons to only appear on certain screens.  At least, that's the problem I'm facing.
    If it is possible, to hide/show icons on particular screens I would really like to know.  Until then, it seems like Virtual Machines are the best way to do this, despite them eating up the extra resources.

    We can start applications in a particular screen, since Snow Leopard, similar to what Linux has been able to do for some time; however, these screens are not really desktops, since we can't dedicate certain shortcuts/icons to only appear on certain screens.
    Thanks, Eric.  Perhaps I wasn't clear in the above.  I realize we can start applications in certain desktops, but that is NOT what I'm after.
    What I would like is the icons (i.e., shortcuts, directories, files) that appear on the desktop, to be different for each desktop.  Such that if I go to Desktop 2, I can place all my game icons/shortcuts there.  Then if I switch to Desktop 3, I might have all my Office programs there, but not my games.  Does that make sense?
    Eventually I might also want my Dock to have different icons based on what desktop I'm using, but I figure that's even more difficult.

  • How to manage source for java project using eclips?

    Hi,We use TFS 2013 and VS 2013 for source control ,now we want to start mobile app using eclips,
    How to control source of that project,How we can have features of tfs source control on that type of project such a mobile that use eclips.
    thanks
    Thanks. Bahar Ghadami Web Developer And Technical expert

    Hi Bahar,
    You can manage your source code with both Eclipse and My Eclipse.
    Please follow this link to install the Plugin (Team Explorer Everywhere) to manage your source code.
    http://msdn.microsoft.com/en-us/library/hh301122.aspx

  • How to find average for non blank values

    I need to calculate avarage for each restricted key figures. There are some blank values in this restricted key figures. Now I need to sumup and divide by non blank count. Do you know how to do it? How to count non blnak values and find avereage.
    Thanks,
    Phani

    In the properties of Key figure used in column/row, Calculations section, you can maintain calculation type for result as well as single value. There is "Average of all values not equal 0" option is available.
    Rgds,
    Vikram.
    Edited by: Vikram Kate on May 22, 2008 11:23 AM

  • How to put constraint for a property in ATG Search

    Hi
    We are facing an issue with search 10.0.2
    We have added a functionality to search promotions along with catalog.
    Now, if we search by promo id and if an exact match is found then the results come fine.
    like if i search for "promo123" and if there are 5 products associated to promo123 then it displays correctly.
    The problem comes when we search for a promo that does not have any product linked to it.
    like if i search for "promo456" then there are no results associated with it but the search now brings the search related to "promo" excluding the 456 from it and displays them all.
    Is there a way i can tell my search to bring exact match results corresponding to "promo456" and if there is no exact match then display 0?
    Thanks

    Hello,
    You can try this,
    If your promotions item descriptor is part of the index then add the following input field in your search form.
    Eg:
    <dsp:input bean="/atg/commerce/search/catalog/QueryFormHandler.searchRequest.relQuestSettings.activeSolutionZones" type="hidden" value="role:promotionitemdescriptorpropertyname.id"/>
    Here the value of this hidden field is
    role:promotionitemdescriptorpropertyname.id
    You need to change the promotionitemdescriptorpropertyname with your property name in productcatalogoutputconfig and if you search on id then add
    whatever is the id name of the property you need to pass that.
    Hope this helps...
    You can have the documentation at following URL:
    http://download.oracle.com/docs/cd/E22630_01/Search.1002/pdf/ATGSearchQuery.pdf
    and in that pdf take a look at this chapter "Setting the relQuestSettings Property"
    Edited by: 890963 on Oct 12, 2011 1:32 AM
    Edited by: 890963 on Oct 12, 2011 1:35 AM

  • How to manage Photos for business

    Hi there
    I have this wonderful IPAD thanks to Apple so I had a crucial question as the main use of my IPAD is for business.
    I load photos in Iphoto the traditional way, these photos are from my business and required to show clients, the product name is the file name. So many clients that I deal with have the option of picking and ordering from the photo itself.
    So a few questions I have....
    1. How do I make it so I can see the file name so when the client picks the product from the photo, I can write the product number / name from the File name itself.
    2 On top of this what would be equally beneficial is to chose or mark certain photos that the client chooses. IE - drawing or marking that photo with a your hand/stylus or starring it some how so you can later categorize it to a folder or something which in turn I can do multiple things once I am back at the hotel room like copy and pasting the photos into email to send of to order or writing the names down into the order sheet of the selected photos.
    3 - Any other tips and suggestions on with this issue.
    Thank you in advance,
    Jainesh
    P.S - Most of the places I go don't have wireless internet connections so copying them to drop box or internet sites is out of the question.
    Message was edited by: JayHetz

    Hi. I'm looking for something similar. I'm an interior designer and I want to create folders of photos for clients that I can show them at meetings. This is the main reason I bought the iPad -- thought I'd save on toner by not having to print everything out! -- and I'm frustrated, to say the least. Ideally, I could organize folders within folders, too. I want to be able to drag and drop photos from the internet, from iPhoto, etc.

  • How to specify language for non-default stoplist

    Dear All,
    I want to CREATE 2 INDEXes for Text Search
    For the first index I want the stoplist to be ctxsys.default_stoplist - my database language is English
    For the 2nd index I want to indicate that the stoplist in the PARAMETERS section should be the supplied stoplist for Dutch. I have gone thru all the documnetation but still I wonder: How??? Please help!!! TIA
    Kind regards,
    Dobedani

    Please ask questions regarding Oracle Text (formerly interMedia text) in teh Oracle Text forum. You will get a better audience for your question.

  • How to load init for non cumulative values?

    Hi folks,
    anyone here, who can tell me how to load initial amounts from DSO to non cumulative values in InfoCubes?
    I found only poor documentation about this.
    Thanks!

    hi Timo
    you load initial of load as you do in the normal case only thing you have to keep in mind that before loading opening balance you have to UNCLICK  NO MARKER UPDATE from the infocube and compress the request ASAP as it will greatly effect your query performance.
    sanjeev

Maybe you are looking for

  • GUI_GET_DESKTOP_INFO return is null

    Hi all,       if any one change sap data( eg, material data, plan order...), we want to get windows id.   I add sap code in "LSCD0F04'.   so have any issue. 1. when user change plan order, GUI_GET_DESKTOP_INFO can get windows ID, 2. when user change

  • Export/import (user mode)

    can you help me please, 1- I exported the SCOTT schema (user mode): exp scott/tiger FILE=D:\scott.dat LOG=D:\scott_exp.log OWNER=SCOTT then I imported to new created before schema SCOTT_COPY: imp scott_copy/tiger FILE=D:\scott.dat LOG=D:\scott_imp.lo

  • Purchase iPhone in Australia for use in UK?

    Hello, Im currently living in Australia for a year (studying abroad) and my old iPhone 4 is on it's last legs. I am looking to buy a new iphone (maybe the new model ) whilst out here. I will buy it unlocked from Apple directly and use a sim only cont

  • WDDynamicRFCExecuteEXception:Invalid request accessed

    Hello,    I have a question in execute a interface which written by ourselves at NWDS ,and when i save or submit it report an error:   com.sap.tc.webdynpro.modelipl.dynamicrfc.WDDynamicRFCExecuteEXception:Invalid request .accessed, error key:       R

  • Iphone turned off and wouldn't turn back on, now won't restore

    I am FURIOUS because about an hour ago my phone randomly shut off while it was in my purse. I had just used it and it was not low on battery. After driving home and connecting it to my MacBook, then holding the sleep and home button, it restored to f