Another delete order question

I've looked through the forum but haven't found exactly this issue, hopefully it is still a simple matter...
I have a single class that has a private 1:1 mapping to itself for a parent-child relationship. The 1:1 mapping and the fact that it is private is expressed in the TopLink workbench. However, when I do a readAllObjects on the class and then try to do a deleteAll on the returned Vector, I am getting an integrity constraint violation because it is trying to delete a child before its parent.
All of the examples I've seen are mappings from class A to class B, not from class A to itself, so it's not clear to me how to proceed. Any help would be appreciated.
Thanks,
Patrick

Could you describe the schema and object model in more detail and include the descriptor for the class.
Is the parent/child relationship defined by 1 foreign key or two? i.e. do you have a bi-directional foreign key constraint in both tables? If so you might consider only defining the foreign key in one direction and using a target foreign key in the inverse direction. Otherwise you may need to break some of the relationships before deleting the objects, i.e. set the parent or child to null so that it is first updated to allow the deletion.

Similar Messages

  • Another pre-order question. uk

    I'm going to pre-order my iphone4 on the 15th, but how will the order process work with working out a monthly contract with 02/orange/vodafone.
    I'm confused because if you look at the current store/iphone3gs you can only buy the handset and no contact involvement.
    Does this mean that I will have to order through the 02 store itself and forget about apple.com
    I will be a new 02 or orange customer and will require a new micro-sim plus my currrent number moved over from old network.

    AOR04 wrote:
    They have ordered enough to fulfill pre orders however that does not mean they will get them all on the 24.
    correct, Nokia kinda needs to stop stated that BB ordered enough because that doesnt mean anything at all
    if youre like 30 on the list, youre either gonna get one on release(if they get enough) but if they dont get enough i wouldnt be suprised if you got yours on the 3rd-4th shipment

  • Create another purchase order for a material ordered in full

    Hello friends,
    I have a little MM question for you.
    I've created a purchase requisition with a material A and quantity 100 UN
    I've then created a purchase order in reference to this PR.
    This PO has been released.
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?
    How does SAP control that ? (customizing path ??)
    Regards,
    Bahia.

    Dear,
    Is it possible, in standard SAP, to create another purchase order in reference to the same purchase requisition for the same material and the same quantitiy ?  Yes it is possible in SAP
    How does SAP control that ? (customizing path ??): SAP controls in that way, when ever you create purchase requisition with a material A and quantity 100 UN...Now PO created and released...
    Now again if you try to create PO wrt PR, you can observe this time you will get all deatils in PO without quantity...reason behind that is, you have already released an order for full qty w.r.t. that PR...So this time qty field will be empty..You have to manually enter this field.
    Now the same you can see in the the PR status in ME53N Tcode.
    Regards
    Utsav

  • Please delete my question about backing up. I already found my answer.

    Hi,
    Please delete my question about backing up. I already found my answer. Just wanted to make sure that it was okay to backup the iPod_Control folder. I've read that other people have done this and re-imported back to iTunes. Here's the question I submitted. When I get my iPod back in order I am gonna backup the iPod_Control folder .
    https://discussions.apple.com/message/15836196#15836196
    Thanks,
    Liz

    No urgent reason to delete it. Just reply to yourself as above, if you care to, and then mark your own answer as correct. You won't get any points, but it will be clear you are closing out the topic.

  • Excise Invoice is captured with another Purchase Order

    Hi
    We have a scenrio, transfer the material from debond plant to mfg plant after imported material in kept in Bonding area. STO po is raised to from imported plant to mfg plant with Imported duties as delivery costs.
    Bill of entry is provided for all the materials as one. While capturing the excise amount at line item level is difficult so, captured at first line item level as total because material is Same (Material is Split valuated materials with 3 batches). First GR is done properly but next GR for 2nd and 3 rd line items are refered with earlier Bill of entry, system promprts the error message "Excise Invoice is captured with another Purchase Order".
    Please do the needful.
    Regards
    Mohan

    Hi,
    Please be informed that for one a GR document wrt PO only one excise invoice can exist.
    Ex PO-4500000010
    GR no 5000000010
    only one excise can exist and if the same excise invoice is reffered to another GR with the same PO system will throw an error message. Please let me know the exact business requirement in detail.
    Naveen

  • Create a Sales order with reference to another sales order  using BAPI

    Dear All,
    Can any one tell me what are all the parameters required to create a Sales order with reference to another sales order using BAPI_SALESORDER_CREATEFROMDAT2....
    Thanks in advance

    Hi Madhan
    Thanks a lot for your reply.
    However, I would like to know which parameters need to passed in this BAPI in case of SO creation with reference. I beleive there are only a few parameters that need to passed in ORDER_HEADER_IN, ORDER_ITEMS_IN, etc.
    Need to know exactly which are these parameters.
    Regards
    Mihir Shah.

  • Sales order with reference to another Sales order

    Hi SAP Gurus,
    Good day.
    I would like to seek an advice from u regarding this scenario:
    First if all, is this scenario possible-create sales order w/ reference to another sales order?
    We have a scenario wherein the original sales order has a material w/ free goods. And then when we create another sales order w/ ref to that iriginal sales order, the free goods appeared twice.
    Original SO:
    Item.  Material.    Qty.  item cat
    10.      123.          5.       ZOR
    20.       123.         1.       ZORR
    SO w/ ref to above orig SO:
    Item.  Material.    Qty.  item cat
    10.      123.          5.       ZOR
    20.       123.         1.       ZORR
    30.        123.         1.      TANN
    Item 30 should not appear since our goal is to copy exactly what was on the original sales order.
    I have checked the item cat and copy control & seems it is correct.
    Please advice
    Thanks,
    Erza

    dear friend,
    your 'key' transaction is VTAA
    the copy control has two parts - header and item levels - check them both
    1.
    find out your record (source to target) , goto Deatails and check out two checkboxes - "Copy item number" and "Complete reference" . also check out the copying requirements - look at routine number and make sure it is correct
    2. at item level check out all relevant 'copying' fields
    good luck

  • Sales order with reference to Contract and another sales order

    Hi Gurus,
    I would like your suggestions on one of the business requirement i have.
    We are creating a new EDI interface with few of our customers to create sales orders. While creating sales orders, it should validate if there are any open contracts available and if yes, then the sales order should be created with reference to it. so far good but there are chances that sold to party on the contract could be different from sold to party on the EDI order sent by customer (customer can have more than one sold to party on their system). IDOC's are failing in this scenario and not able to create a sales order since sold to partys are not matching. I need your help.
    Can we do some thing in customer master to handle this scenario?
    or
    Create a new sales doc type (YEDI or some thing) and create sales order from IDOC without reference to contract. Business will look into all YEDI order and create the actual sales order out of it but the challenge here is i cannot refer contract to the actual sales order or YEDI order.
    Is it possible to create sales order with ref to a contract and another sales order?
    Please help
    Thanks
    Venkat

    Hello Venkat
    What is the linkage between sold to party of contract and sold to party of order..If customer has more than one sold to party.
    Why don't you use customer hierarchy....link all sold to party of a customer to hierarchy node.for example...you create a hierarchy  node 1000 and assigned customers 2000 and 3000 to it.you have contract for 2000..so when you create a sales order for 3000 check in knvh table it's customer hierarchy 1000 and get all sold tos assigned to hierarchy...which is 2000....check if contract exist for sold to's..If yes then create order with reference.
    Let us know if it works for you.
    Thanks
    Amit Gupta

  • BAPI to create sales order with reference to another sales order

    hi all,
    is there a bapi that allows you to create a sales order with reference to another sales order?
    thanks,
    V

    Hi Valencia,
    I think the normal BAPI (BAPI_SALESORDER_CREATEFROMDAT1)will do. You will have to fill the fields REF_DOC, REF_DOC_IT, REF_DOC_CA of the table ORDER_ITEMS_IN (and make sure that Customizing settings allow you to copy from order to order).
    Regards,
    John.

  • FM to create Sales order with reference to another Sales order

    Hi,
    Is there any inbound IDOC FM which can create a Sales Order with reference to another Sales order.
    PLease reply
    Santhana M.

    Hi,
    try FM BAPI_SALESORDER_CREATEFROMDAT2
    with ORDER_HEADER_IN fields
    REFOBJTYPE
    REFOBJKEY
    REFDOCTYPE
    Regards,
    Clemens

  • Transfering from one Internal Order to another Internal order

    Hi
    I need to transfer part of internal order from one location to another internal order to a different location (not physically, but in the system). Budget is only one
    Can somebody let me know if we have this functionality in the Controlling. Each Internal Order is assigned to different CWIP.
    Prasad

    I want to transfer the Budget and Actuals also. The actual scenario is like this:
    We have a budget for 10lakhs. We purchased some materials. Please remeber this is CWIP related thru internal order. Part of the Budget is used (for 1 lakh) and purchased material against this. Part of this material purchased say 40000 is to be transfered to another location Physically, for similar activity.
    As a i am transfering this material, part of my internal order is also has to be transfered to the other location, but remember the budget will be the same.
    So I need to transfer actuals and budget to another location.
    Prasad

  • Deleted order reappeared

    Hi,
             We have a background job with program delete_pp_order, that deleted a PPDS output firmed planned order and sends the deletion to R/3. I can see the planned order and qty. in the spool of the job.
    Now when I looked at the product view,it reappeared. I checked the start date of the order and the order number. It is the exact same orders.
    What can this be caused by?
    I deleted a CIF block in SMQ1 (outbound queue) for other reason. may be this deletion was in the the same LUW as the other queue and go t deleted.
    But does deleting the CIF queue bring back a deleted order?? I thought it should be only the deletion change pointer in SMQ1 that's deleted and should be caught up in CCR report. Isn't it???
    Any suggestions please?
    Thanks.

    Hi Visu,
    When you delete the queue block those changes has not be transferred to R/3 and order is not deleted in R/3.
    Whenever next CIF run or do any changes to  order will bring back it to APO.
    First run the CCR and put both the system in sync.
    Delete order again in APO .
    Than check order in R/3 whether it is deleted or not , if it is not deleted than check queue block  and if any first analyse it by going to details by SLG1,/SAPAPO/C3 or /SAPAPO/CQ  and CFG1 on R/3 side.
    Take corrective action as per log and reactivate the queues.
    Manish

  • How to delete order created against notification

    hi gurus,
    Someone tell me how to delete order created against notification. & also PR created against it.
    Regards,
    Radhika

    Hello
    You can set the deletion flag only when the order is business completed - CLSD status (no open costs remaining on the order). Deletion flag is set to the order when you want to archive the order. Till the order has a CLSD status, the del flag setting in the menu will remain inactive.
    Any open PR created against the order is automatically set to deletion when the order is set to TECO - tech completed status.
    For your scenario:
    If you dont want to use the order and the order is with CRTD status - you can set the 'Do not Execute' flag. It will set the order to CLSD and NCMP (Not completed) status. this will also delete your PR
    In case your order is already released - you will have to set the CLSD status for your purpose
    Regards
    Kartik

  • Deleting orders from Live Cache

    Hi Gurus,
    Is there any way where we can delete orders directly from Live cache?
    I have a situation where Process orders are present in R/3 and not available in APO. It shows up in the CCR report, but when we push them it gets stuck in the queue with the error Order Type 6 and 'A table entry exists with this Secondary Key'.
    I verified these orders in OM16 transaction and these orders are available there, but I am unable to view them in RRP3. When I check in Tcode: OM19 this is availavble in ORDMAP Object.
    Is there any way I can delete them from directly Live cache ? or how can I make both the systems sync?
    Thanks in advance.
    Regards,
    Murali.

    Hi
    Check the following
    1)Use this Program /SAPAPO/DELETE_PP_ORDER and make sure the check box LV_EXECU is ticked and specify the time period of the orders. Becuase some times without specifying the above it will not display the details
    2) Use the Program /SAPAPO/RLCDELETE and execute. I'm not sure on this. But you can try
    3) Tell me- This Process orders are created in R3 and ciffed to APO or it got converted in APO from Planned order to Production order. Pls look at the origin of Process orders
    Hope this helps
    regards
    Vijay

  • Another color management question

    Hi folks,
    Apologies for yet another color management question, but Im getting very confused and could do with some help. I use a Canon 10D and Canon 30D. Ive come to LightRoom from Pixmantec Raw Shooter.
    As Ive gotten more serious about producing high quality images for both the web and as prints, I thought Id invest in the Colorvision Spyder2 calibration product. So my monitor is now calibrated (quite a difference from what I was seeing!) and I have a calibration profile applied.
    My needs are pretty obvious I want my images to look the same wherever theyre viewed including exported files (such as JPEGs) whether this be on my monitor (in LightRoom, a web browser, Paint Shop Pro, whatever) and on a printer.
    Perhaps Im getting confused because Im trying to compare what LightRoom does with what RawShooter does.
    In RawShooter, when exporting from RAW to JPEG, I can specify the RGB Working Space Im using and then select my monitor profile. I think that what happens is that the export mechanism takes this profile into account and, low and behold, the JPEG looks fine when viewed in any web browser - the colours are exactly the same as in RawShooter. In Paint Shop Pro they look fine too unless I enable Color Management in which case (Im guessing) the monitor profile is, essentially, applied twice! But the upshot is I seem to get the results I want.
    What I cant figure out is how I do this in LightRoom. I can make the same adjustments to the RAW image as I did in RawShooter, but there doesnt seem an option for me to select my profile on export to JPEG only the standard 3 color spaces. Anyway the result is a JPEG that looks somewhat different when viewed in a web browser, or Paint Shop Pro with Color Management turned off. However, if I turn Color Management on in Paint Shop Pro, then it looks fine. So Im assuming that my profile isnt accounted for when exporting JPEGs from LightRoom.
    So any pointers or explanations would be really appreciated. I also acknowledge that this is my first foray into color management, and feel free to tell me to go and read some introductory article (link please!) and then come back with a sensible question if thats whats needed!
    Thanks in advance.
    - Pete

    Lightroom color management.
    a.) Monitor profile used: The profile set as the default in your operating system (e.g. Windows xp). (your monitor profile software usually does this when you calibrate/profile your monitor).
    b.) Working space: ProPhotoRGB
    c.) Export color space: You can choose one of the following sRGB; Adobe RGB or Pro Photo RGB.
    There is no option (afaik) to change a.) or b.) the option you choose in c.) will affect how the exported image will be displayed in color managed applications or non-color managed applications.
    Non-color managed applications are not able to display Adobe RGB or Pro Photo RGB correctly. I guess if you wish a consistent display of your images in color managed and non-color managed applications then the only common factor is sRGB and you should export your images in sRGB color space.
    The benefits of the other expanded color spaces are in printing and you also would have to get this end of your color management correct. Printing profiles to match your printer and each paper being used etc.
    Until you can get this all sorted out you will get better results from sRGB, this is also applicable when using most commercial printing services.

Maybe you are looking for

  • HP Color LaserJet 2600n and Airport Express Issues

    To me it seems like more of an issue with the Airport Express and Snow Leopard. Am I totally off base on this. I tried the work around post in another thread on here and it just fails to connect to the printer properly. Either way, I wonder how long

  • Printing from a DOS application to Adobe PDF Printer

    I have been asked to provide reports from a legacy DOS application to PDF and of course decided to use my Adobe PDF Printer that came with the copy of Adobe Acrobat 8 Standard I purchased. I am running Windows XP. I am able to overcome the obvious pr

  • Can I record live telephone calls to my MacBook?

    I am undergoing telephone training and would love to be able to record the calls directly to my hard drive on my MacBook to review later. Can this be done? Do I need special software?

  • IP over Firewire AND Ethernet  connected cluster?

    Does anyone have any experience with IP over Firewire and Qmaster? What I'm trying to do (for now) is to have a file server connected to a bunch of Firewire HD's, then that connected to two other macs via IP over Firewire, and all that be a cluster.

  • Instance Label in Stream Mode and Different Preference with Same Portlet

    Hi Guys, I encounter some problems need your help, 1. When I use Stream mode, and add a portet, but there is no way to changed instance label, if it's possible to change instance label in Stream mode 2. I have one portal, and there are some instances