Handling of 'Mark as Delete"

A project has this requirement where it needs to set flags for records in the database tables when these records are deleted.
If an object graph needs to be deleted, do we have to loop thru all the objects in the graph to register and update the flag for each object?
What's recommended solution for this problem? Thanks.
Haiwei

So you do not actually delete the rows, you just update an is-deleted column correct?
Instead of deleting the objects in TopLink, you could just update the isDeleted attribute in the object.
For filtering deleted objects on queries you could make use of the TopLink Descriptor's additionalJoinExpression.
You could also investigate TopLink 10.1.3 history support, that provides similar functionality.

Similar Messages

  • Open Production Order with Mark for deletion

    Hi
    Friends again stuck in open production order
    i want to calculate  production order quantity for open production order,
    only those production order which dont have mark for deletion.
    I find a field in afpo XLOEK ..but it wont get reflects when done changes in CO02
    Then i used the table JEST and i want to delete those aufnr which has deletion flag i wrote the folowing code pls do correct me where iam wrong .
    IN this code  deletes aufnr which are marked as deletion  ?
    SELECT afko~aufnr
           afko~gamng
           afko~plnbez
           afpo~dwerk
           afpo~psmng
           afpo~matnr
           INTO CORRESPONDING FIELDS OF TABLE i_afko
           FROM afko INNER JOIN
           afpo ON afpoaufnr = afkoaufnr
           WHERE afpo~dwerk = s_werks
          AND   afpo~matnr IN s_matnr
          AND afpo~elikz = space.
    LOOP AT i_afko.
      CONCATENATE 'OR' i_afko-aufnr INTO i_afko-aufnr.
      MODIFY i_afko.
    ENDLOOP.
    IF NOT  i_afko[] IS  INITIAL.
      SELECT jest~objnr
             jest~stat
             jest~inact
              INTO CORRESPONDING FIELDS OF TABLE i_jest
              FROM jest
             FOR ALL ENTRIES IN i_afko
             WHERE objnr = i_afko-aufnr.
    ENDIF.
    LOOP AT i_jest INTO wa_ijest.
      IF wa_ijest-stat = 'I0076' and ( wa_ijest-inact = SPACE  ).
        DELETE i_afko WHERE aufnr = wa_ijest-objnr.
      ENDIF.
    ENDLOOP.
    i_afko1[]  =  i_afko[].
    SORT i_afko BY matnr dwerk.
    DELETE ADJACENT DUPLICATES FROM i_afko COMPARING matnr dwerk.
    loop ....
    calculate :quantity
    endloop.
    Regards and answers will be rewarded points

    thnks
    solved the problem
    regards

  • Error 1075: The dependency service does not exist or has been marked for deletion

    Windows 7 Pro laptop will not connect to corporate domain. Multiple identical twin laptops have no problem.
    Best suggestion so far has been to leave the domain and rejoin it, BUT the relevant buttons are grayed out and the comment says "Note: The identification of the computer cannot be changed because:- The Workstation service is not running. Open the Services
    snap-in (services.msc) to ensure it is running and set its Startup Type as "Automatic"."
    In services.msc the Workstation service is already set to Automatic but is not started. When I try to start it manually the response is "Windows could not start the Workstation service on Local Computer." and then "Error 1075: The dependency service does
    not exist or has been marked for deletion."
    Rebooting gets me nowhere.
    In all other respects that laptop appears fine and can connect to the Internet, but NOT to the network. I have brought it and a twin laptop home to try on my domestic network and get the same results.
    Any ideas, please?

    Hi,
    Let us go to services.msc and navigate to Network Store Interface Service. Please check whether this service has been set to Automatic and turned on.
    Kim Zhou
    TechNet Community Support

  • How do I tell if a user profile is marked for deletion?

    This is likely a question with a simple answer, but searching through Google and here hasn't helped.
    How do I tell if a user profile has been marked for deletion?
    Will it appear in the "Manager User Profiles" area of the User Profile Service Application management? 
    Do I need to look somewhere else? 
    This is probably obvious, and I just have looking disease, but your assistance is most appreciated!

    As Paul said you can see that on UP admin page. also you can use powershell to get the list of all use in powershell.
    Follow this blog:
    http://iedaddy.com/2012/02/sharepoint-2010user-information-lists-and-user-profile-cleanup/
    $upa = Get-spserviceapplication <identity>
    Set-SPProfileServiceApplication $upa -GetNonImportedObjects $false
    Set-SPProfileServiceApplication
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • To find out the list of user profiles marked for deletion using powershell or C# for SharePoint 2010

    I have Disabled the MysiteCleanup timer Job and disabled few user profile accounts in AD.  Then in SharePoint user profile service, ran the User profile full synchronise job.
    I am able to find the marked for deletion records from the table (UserProfile_Full) in SQL server and also in the Manage User profile menu of the central admin under "Profile missing from import"
    view.  But  am not getting these records, If I execute the  below powershell command.
    $upa = Get-spserviceapplication -name 'User Profile Service Application'
    Set-SPProfileServiceApplication $upa -GetNonImportedObjects $true
    This command shows only the system account and not the accounts, which are marked for deletion .
    Please suggest how to get this result.
    Thanks & Regards,
    Yoga

    What result do you get hen use use type below in powershell
    $upa

  • Mark for delete for BP in CRM

    Dear Sir,
    We still use CRM 5.0, If I would like to mark for delete the business partner, how to mark for delete for BP in CRM??
    And which table and field name to store for the mark for delete for business partner in CRM/
    Please kindly advise.
    Thnak you and best regards,
    Vimol

    Hello!
    It's not supported to delete Business Partners in CRM (Web- or PC-UI). You can just flag obsolete or redundant Business Partners for archiving.
    However there is the transaction BUPA_DEL you can use in order to delete BPs.
    Here a link for further Information [http://help.sap.com/SAPHELP_CRM70/helpdata/EN/e0/f2683cf5e8fe67e10000000a114084/frameset.htm|http://help.sap.com/SAPHELP_CRM70/helpdata/EN/e0/f2683cf5e8fe67e10000000a114084/frameset.htm]
    Best regards
    Arno

  • How to close Purchase Order and mark to deletion flag.??

    Hi,
    We need to close all Open POs(For archiving, some old data) through a report.
    Considering .....
                       1. PO-GR-IR
    and              2. STO-Outboundelivery-PGI-IBD-PGR
    Checked few threads, though useful but still more information required.
    -> Preprocessing program for archiving standard object MM_EKKO 'RM06EV47' is  helpful.
    -> Example we have four POs p1,p2,p3 and p4.
    P1,p2 has deletion flag as 'L' so will be filtered out with
      SELECT ebeln    FROM  ekko INTO TABLE lt_sekko           
        WHERE ebeln  IN er_ebeln
          AND ekorg  IN er_ekorg
          AND bstyp  IN er_bstyp
          AND bedat  IN er_bedat
          AND bsart  IN er_bsart
          AND ekgrp  IN er_ekgrp
          AND loekz <> 'L'
          ORDER BY EBELN.
    For P3 has GR .
    P4 has to be marked for deletion flag.
    Regards
    Mohinder Singh

    Hi Thanks for the reply. I checked with that bapi too. I used  some part of standard code and then manipulated. Will shorty paste the code on to SDN as its general one and may be used by others.It still under testing.
    Edited by: Mohinder Singh Chauhan on Feb 20, 2009 4:07 AM

  • HOW TO BLOCK THE PURCHASE ORDER AND MARK FOR DELETION ?

    Hi ,
                        During the Creation of the Purchase order in the SAP System... After creation of the Purchase order should be blocked and a work item is created for the approver. If the Approver approves the Order then the Order is Unblocked and a mail send to the initiators inbox and the Order is Released. Similarly if the Approver Rejects the Purchase Order then its set for Mark for Deletion.
    I did Po creation and release part. But i am facing problem during the Blocking & Unblocking the Purchase order. If he rejects i need to set for "Mark For Deletion". plz help me to solve this...

    Hi,
    You can use bapi 'BAPI_PO_CHANGE' to change the status of PO and for release use bapi BAPI_PO_RELEASE.
    Hope this will help you.
    Smit

  • Mark For Deletion of STO's which purchase order history

    Is there a way, where I can set mark for deletion for a STO which has partial goods issue/receipt { i.e. it has purchase order
    history }
    Thanks In Advance!!

    Dear,
    Check solved question: Re: To close old STO with inbalance GI and GR
    Regards.
    Syed Hussain.

  • "ORA-21700: object does not exist or is marked for delete" select from ADT

    Posted this in OLAP section as well, but since this is Object technology, I thought I would repeat it here. Sorry about the duplication.
    BTW, I'm using Oracle9i 9.2.0.4.1.
    I'm trying to create a script that can automate the process of generating abstract data types for use in an OLAP_TABLE function. I'm following the examples in the documentation. Everything runs great the FIRST time I run my script, but when I drop my types and re-create them, when I run the next SELECT statement against the OLAP_TABLE function, I get:
    ERROR at line 1:
    ORA-21700: object does not exist or is marked for delete
    My script drops the ADTs before creating, but somehow they are not REALLY being dropped.
    SET ECHO ON
    SET SERVEROUT ON
    DROP TYPE ts_table_6;
    DROP TYPE ts_row6;
    CREATE TYPE ts_row6 AS OBJECT(
    CONJ2002 VARCHAR2(400),
    CONJ2002_DATA number(16),
    PERIOD VARCHAR2(10),
    PERIOD_NAME VARCHAR2(20));
    CREATE TYPE ts_table_6 AS TABLE OF ts_row6;
    SELECT CONJ2002, period, period_name, conj2002_data FROM TABLE(OLAP_TABLE(
    'REFVLMTA DURATION QUERY',
    'ts_table_6',
    'limit CONJ2002 to first 3',
    'MEASURE CONJ2002_DATA from CONJ2002.DATA
    DIMENSION CONJ2002 from CONJ2002
    DIMENSION PERIOD from PERIOD WITH
    ATTRIBUTE PERIOD_NAME from period.name'));
    Again, it works the first time, but not the second time. I need to bump up the ADT names to ts_row7 and ts_table_7. SQL Plus says the types are being dropped.
    Any ideas?
    Dan Vlamis [email protected]

    Hi Dan
    What append if you do a connect between the DROP and the CREATE statements?
    Chris

  • Is it possible to change warning "& is marked for deletion" to a hard error

    As part of our periodic update of our bank directory in transaction BAUP, Bank Keys which are no longer valid are marked for deletion. We are not at the point where we are archiving records yet, so the actual deletion has not occurred in our system.
    When an HR user updates a person's bank information (transaction PA20 or PA30, InfoType 09), if they enter one of these bank keys, they are given a warning that the bank key is marked for deletion. However, this is not a hard stop, only a warning message. As a result, they are able to save the record with an invalid bank key. The details indicate that this is message class F4, message 230. However, it appears from the IMG that it may be message 210. I have tried working with each of them.
    I have attempted to change the message to a hard error in message control, but have not been able to do so.  I receive an error telling me that "Message 230 (or 210) is not allowed". I have tried several application areas, including FV, Electronic Banking Messages.
    Is there any way in configuration to change this to a hard error? If so, please supply details, including application area.
    Also, are there risks of disruption of standard business processes if we do change this to a hard error? I know that this same message is issued for other master data elements which are marked for deletion such as GL accounts or Customer records,
    Thank you.
    I have searched forums with terms "marked for deletion" and "warning" but have not found an answer. I have also searched various outside expert forums on this topic. Everything I have seen seems to assume that this message will be a warning only.
    Aoife B.
    Edited by: Aoife Bratton on Oct 16, 2008 4:16 PM
    Edited by: Aoife Bratton on Oct 16, 2008 4:16 PM

    If particular message is not allowed in OBA5, then it is not configurable message. Neverthless if you like to change this message, you need to configure this in OBMSG first

  • Search Server Error - Illegal operation attempted on a registry key that has been marked for deletion

    Hello,
    I have a 5 server farm (DC, 2 WFEs, 1 SQL,1 CA w/ search) and am experiencing an issue when returning search results.  This issue just started occurring recently, and basically the search page throws a correlation id whenever used.  The error returned
    is:
    SearchServiceApplication::Execute--Exception: System.Runtime.InteropServices.COMException (0x800703FA): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)
    SearchServiceApplicationProxy::Execute--Error occured: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) (Fault Detail
    is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)
    I even attempted to create an out of the box enterprise search site with OOB masterpages and I still am receiving this error.  
    I have also tried the  ‘Do not forcefully unload the registry at user logoff’ registry edit, but it did not work.
    Has anyone ran into this issue and has another solution other than the ‘Do not forcefully unload the registry at user logoff’ registry edit?
    Thanks!

    IISReset works for me (but after some time it fails again)
    Check this posts: http://pacsharepoint.com/2011/11/sharepoint-search-illegal-operation.html
    http://blogs.msdn.com/b/distributedservices/archive/2009/11/06/a-com-server-application-may-stop-working-on-windows-server-2008.aspx
    hope it helps,

  • Posting block and Marked for Deletion

    Hi All,
    My clients wants to know the vendors who are either marked for deletion or blocked for posting when was the date for the block or marking it for deletion and the person  responsible.
    Though i can see that one by one through Vendor master but i need to give this in report format.
    Even with Fk04 i am not able to make out.Can you please help me out.Bit urgent

    Hi,
    You can check old value and new value by using table CDPOS.
    If you want to know the time and person responsible by using table CDHDR
    In table, put table name LFA1/LFB1 and required field like for field SPERR (LFB1) is for posting block for selected company code and field SPERR (LFA1) is for posting block for all company codes.
    If you want to know it for specific vendor, then given vendor number in Object value or leave it blank for all items.
    Hope it will be useful.
    Regards,
    Vinod

  • FI Vendor marked for deletion

    Hi All,
    I wanted to know if i have marked a vendor for deletion and all the post has been blocked then will i be able to do the payment? I am technical consultant so not much knowledge on FI module. Can anybody tell me the tcode also related to this.
    Thanks
    Salish

    Hi,
    Vendor Marked for Deletion and Posting Block in Co.Code,
    You wont able to do the Payment .
    Vendor Marked for Deletion      - FK06 / XK06
    Posting Block               - FK05 / XK05
    Payment Block          - FB02 or at the time of Invoice u2013FB60/F-43
    Regards,
    Sridhar Sha

  • Vendor master marked for deletion

    Hi Gurus,
    I have the following issues related to vendor master deletion.
    1. I can  able to create PR, release the PR for the vendor after marked for deletion and also blocked in XK05.
    2. It allows to maintain RFQ for the vendor marked for deletion and also blocked in XK05.
    3. It allows to release PO for the vendor marked for deletion and it blocks only after blocking in XK05
    4. It allows to post GR and IR for the vendor marked for deletion and also in blocked in XK05.
    Appreciated your help on this.
    Thanks and regards
    Durai

    the deletion indicator is a preparation for archiving.
    However, archiving will check whether the vendor is still in use and must be kept.
    A deletion indicator will with standard customizing not restrict the usage. The user get a warning message and this should him make start thinking.
    1. I can able to create PR, release the PR for the vendor after marked for deletion and also blocked in XK05.
    Do you have a purchasing organisation. in the requisition? XK05 restricts the order creation, I do not know about any restriction in requistion creation or release.
    2. It allows to maintain RFQ for the vendor marked for deletion and also blocked in XK05.
    This should not be possible if the purchasing block is set according to OSS note 67341
    3. It allows to release PO for the vendor marked for deletion and it blocks only after blocking in XK05
    Thats correct, If the vendor was not blocked at PO creation, then system has to allow the follow on activities, explained in OSS note 129836
    4. It allows to post GR and IR for the vendor marked for deletion and also in blocked in XK05.
    same as for Q3, explained in OSS note 129836

Maybe you are looking for

  • Flash installed and up to date however flash does not run on any web browser

    I was catching up on watching a televsion show and watching it with no issues/no problems with flash before. I went to the website below  and all of a sudden flash is not working. I did not change any settings, run any updates. I checked various brow

  • Manual Backup for MacBook Pro

    I'm a little confused. I've been reading all the comments that suggest one should leave the Time Machine on automatic backup all the time, and that manual backup defeats the purpose. But what if I have to carry my MacBook around all day, and only man

  • How do I get my old browser back?...This new 4.0beta 12 stinks

    I want my yahoo mail and farmville toolbars back. Looked up the program and 4.0 Beta is not compatible. I want the old browser back..How do I do it?

  • Reorganization of the database (defragmentation of tables).

    Hi All , Can anyone tell me how much approximate time do we require for reorganization of the database(defragmentation of tables) . DB size is 300Gb . I think there is a package called dbms_redefinition for this job? Correct me if i am wrong Os versi

  • How do you remove preview as default

    In opening some documents, Preview is the default for opening. I want to change it to a different program. How is that done? (OS10.6.8 on Macbook Pro)