Determine if Object is Marked For Deletion

Hello,
How can I determine if an object is marked for deletion in a UnitOfWork? Is there a UnitOfWork method I can use to determine this?
I am querying for an object that may have been deleted in the current UnitOfWork. I am trying to avoid conforming the results of the query so I can avoid hitting the database, but I must make sure I don't find objects that are marked for deletion.
Any suggestions are appreciated.

The UnitOfWork interface currently lacks a method available on the concrete implementation. The UnitOfWork.isObjectDeleted(object) will return true if the object has been passed into UnitOfWork.deleteObject(object). It will not include objects that are being automatically deleted at commit due to them being removed from privately-owned relationships.
For 9.0.4.x I would have to recommend using:
((oracle.toplink.publicinterface.UnitOfWork) uow).isObjectDeleted(empWC)
Beyond 9.0.4 we will have this method added to the interface so that you will not need to cast to the implementation class.
Doug

Similar Messages

  • "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

  • 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

  • Vendor - MArk for Deletion at Comp code & Pur Org Level

    Hi Gurus
    I want a list of vendors (about 150 Vendor)  to be  Marked for Deletion at Comp code & Pur Org Level  
    How to proceed ?

    hi,
    To be able to archive, you must set the deletion flag in the master record. You can set this flag for a complete vendor or for individual company codes or purchasing organizations.
    You can archive data from different tables using the archiving object FI_ACCPAYB...
    Mark a vendor for deletion centrally as follows:
    Choose Master records ->Maintain centrally -->Mark for deletion.
    The initial screen appears.
    Enter the vendor account number and, if you wish, the company code and a purchasing organization.
    If you do not specify the key for a purchasing organization, you cannot delete this area at a later date, should you wish to.
    Select ENTER .
    The screen for specifying data for deletion appears.
    Select data to mark for deletion by clicking next to the appropriate field.
    Save your entries by choosing Vendor ->Save.
    The system displays the initial screen, with a message confirming that the data has been saved.
    Mark a vendor master record for deletion for the Accounting Department as follows:
    Choose Master records -> Mark for deletion.
    The system displays the initial screen.
    Enter the vendor's account number and the company code.
    Select ENTER .
    The system displays the screen for selecting areas to mark for deletion.
    Select the data either in the company code or in all areas to mark for deletion.
    If you click next to the All areas field, the system will later delete all data for all company codes and for all purchasing areas in this vendor master record.
    Save your entries by choosing Vendor -> Save.
    After you mark a vendor master record for deletion, you can still post to the vendor account. This is necessary, since you might still need to clear open items. When you post, the system issues a warning that you are posting to an account that is marked for deletion.
    Displaying Archived Vendor Master Data
    To display single documents for the archiving object FI_ACCPAYB using Archive Information System you require an information structure that has been created based on one of the following standard field catalogs provided by SAP:
    ●     SAP_FI_ACCPAY_1 (vendor master data FI)
    ●     SAP_FIACCPAY_2 (vendor master data SD)
    Each information structure must be active and filled.
    Edited by: Priyanka Paltanwale on Aug 21, 2008 9:09 AM

  • Mark for deletion - Process Order

    Hello friends,
    I am getting the following error when I am trying to activate the deletion flag in process order. Kindly guide.
    System status ORRQ is active (ORD 50000369)
    Message no. BS013
    Diagnosis
    Object ORD 50000369 has system status ORRQ (Order record required). According to this status, transaction 'Mark for deletion' is not allowed.
    Procedure
    You can only carry out the requested function if this is allowed according to the status of the object.
    Regards,
    Narendra

    Hi,
    I am also doknow , how to overcome that status in process order.
    Letus wait for more reply,
    Meanwhile u can achive  through system status.
    BS22 - > select Sytsst =IO278, stat =ORRQ -> double click on Sysst  - >Set as permtd for Mark for deletion.
    Now try to set del flag.
    This not a right way, it will affect all the order type and i ahve not also tired this.
    Regards
    Pradeep

  • Purchasing Info Record marked for deletion

    Hi experts,
    I need some explanation on Purchasing Info Records and more precisely on the deleted ones.
    Could you tell me why a Purch. Info Record that is marked for deletion is still set when a PO is created?
    In ME13 I have the following warning message : 06-718 (Purchasing info record & & & & flagged for deletion).
    In ME21N the same message is displayed as warning and users are able to save the PO with the deleted Info Record.
    I don't understand why SAP still retrieves Info Records that are marked for deletion...
    Is there a way to prevent SAP from using deleted info records?
    Thank you for your help.
    Regards,
    Philippe

    Hi Philippe,
    The message  06718 can be set as an error or warning in customising.
    If message 06718 is set as error then system will not allow to save 
    the document with that info record.
    The deletion indicator is the reservation to delete this record. But
    this is not comparable with the deletion of the record from the database
    This has to be done within the archiving run for the object MM_EINA.
    Untill this inforecord is not archived the data is taken as usual."
    Online documentation provides the following information
    "You cannot delete obsolete info records immediately. You can
    only flag them for subsequent deletion. Info records earmarked for
    deletion in this way are not actually deleted until the archiving
    program is run. This is done at regular intervals by your system
    administrator. You can flag an individual info record for deletion,
    or create a list of deletion proposals and choose the relevant records
    that are to be deleted from this list."
    Kind regards,
    Lorraine

  • Marked for deletion

    Hi,
    I have created one account detemination (1001 for land) for the assets. Now i have deleted the accoun determination. When is try to create the same account determination (with 1001), it throws the message "IT IS MARKED FOR DELETION"

    Hi Deepak,
    The account might have still remained in the table and will not allow further postings. You can delete the account, come out to the main screen and then after you have checked that the account doesn't exist you can re-create. I hope that this clarifies your issue.
    Regards,
    Vinay G

  • Materials marked for deletion

    Hello Gurus,
    Is it possible to eliminate materials marked for deletion?
    If so, is there any program or batch job to eliminate materials marked for deletion?
    Thanks in advance.

    Hi sap fan
    you neeed to use T-Code = SARA  and choose object MM_MATNR, then click on WRITE and create a immediate job or a background batch job and start date and spool parameters , which is used for archiving the data in SAP R/3 but you this is a very critical business decision and you need to make sure that the business manager is aware and get the consent before executing this and need to do this with help of BASIS consultant
    and you need to make sure any open purchasing related documents and inventory stocks and other whcih are dependant on this material are ALL CLOSED and first archived before this activity and settled by the accounts also because once it is archived you cannot recover it and do posting of goods
    also before you go to SARA you need to go the MM71 and enter a variant and maintain it and save the variant
    if useful please REward YOur Points
    thanks and if u have any further doubts please let us know if we can help more
    Chakri

  • 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 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.

Maybe you are looking for

  • Can anyone tell me a how to create layers?

    I have a page with a flash graphic and I've added a floating image to the page.  When the image floats, part of it is behind the flash graphic.  I want it to be on top.  I think this has to do with layers, but I can't seem to find any documentation t

  • Unable to mark ITXEX field for first subtype in IT40

    Hi, My problem is as follows: 1. I am using a bespoke ABAP program to create a subtype (any subtype) for IT40 (objects on loan). 2. The program is able to create the infotype - subtype records correctly. This is was verified using PA30. 3. However, i

  • Importing a table

    Hi all, Assume that I faced a db crash at 10:00 AM. and I used the rman backup set to recover the whole db and i recovered it around 13:00 and i took a rman full backup after recovery. Now it is nextday 20:00. Is that posible to flash back a table to

  • Why does my vector drawing become pixelated once uploaded to the Creative Cloud?

    I'm drawing in Adobe Ideas on my iPad. I assume the only way to save it is to upload it to the Creative Cloud. When I go to view it in the cloud, it looks pixelated. Even when I download it, it is still pixelated. Why is this happening?

  • What is UIComponentGlobals for in Tween.as?

    Hello guys.. I have a question about UIComponentGlobals class in new Tween.as class in Flex 2.01.. Before the recent update, my codes just went so well... Yet after the update, it seems to me that this very class is throwing erros like at mx.managers