Registered Object Question

Hi,  I have changed an object and supplied the object key successfully.  I can now successfully edit the object.  But, when I sign on to another machine with the same profile I get prompted for the object key again.
Any ideas why this would be?   Any idea what table holds the registration information?
Thanks!

When you say "another machine" are you referring to a different instance of SAP?  If this is the case,  when you register an object, you are registering the object for that instance of SAP only.  Now, I believe that you can use the same key to access the same object in two different systems.  In our landscape,  we get the key for the object in our development system,  make the change, then send it on to production.  We only enter the key one time.
Regards,
Rich Heilman

Similar Messages

  • External transaction control and ability to find new registered objects

    Hello, We are using Toplink with external transaction control and have a process inserting a complex hierarchy of objects. During the process we either do a registerObject or deepmergeClone depending on if the instance is already in the db. With external transaction control the registerObject does not actually do the commit to db until the global transaction (Container) issues the commit. Unfortunately we end up doing creating multiple instances of same objects ( because the assumption that registerObject would have written the row to the db ) with the same keys and when the container issues the commit we end up with duplicate key violation. Is there a way to find out if an object with a particular key is already registered?

    This sounds like the kind of question that can only be answered with a whiteboard and a good review of your architecture.
    In general, there should be no problem registering objects multiple times. I.e.,
    x = some object
    x1 = uow.registerObject(x);
    Then x1==uow.registerObject(x), and x1==uow.registerObject(x1), etc. When you register an object with the UOW, based on PK it'll always return that same one.
    Do you have multiple units of work on the go? (that may explain this behavior).
    In any case, I think the real problem here is that you're somehow registering objects that are no longer cached. I.e., some object is serialized or rebuilt and then registered after it's gone from the cache. By default, TopLink determines if an object is new or existing (to determine INSERT vs UPDATE) by hitting the cache. You can change this default behavior in the Mapping Workbench, open the advanced property for "Identity" and change existence checking to "check database". Although, this can be a slow and tedious process to have to keep hitting the DB.
    A little trick I use sometimes is to take advantage of the "readObject" API that will read the object from the databaes if it's not already in cache, and just return it from cache if it is in cache. Check out the UOW primer at http://otn.oracle.com/products/ias/toplink/index.html for more info, but the jist is that I would do this if I were you:
    x = some object that you're not sure is cached and you want to register in UOW;
    x' = uow.readObject(x);
    IF the object was in cache, you'd get back a working copy, nice and fast. IF it's not in cache, you hit the database, it goes in cache, and you get your working copy. Now you don't have to change the existence checking option which could slow everything down.
    - Don

  • Registered objects with Unit of work

    Hi,
    I am using the following code for persisting some data to the database. I register the following objects with the UOW obtained. If there is any exception with the business rules method(shown below) , the code uow.commit() is never invoked.
    My question here is what happens the registered objects in that uow if commit is never invoked.
    Any help will be appreciated.
    Thanks
    Priya
    node=(DeviceNode) uow.registerObject(node);
    station=(Station)uow.registerObject(station);
    user=(User)uow.registerObject(user);
    //Call a method to do some businees rules check
    startWork(node,station,user);
    uow.commit;

    It depends on how you set things up. If you are managing the connection directly via Toplink (no pooling or containers or transactions), then if you dont commit, it doesnt save. If you are using JTS, registering the object will save it to the database barring any unchecked exceptions.
    Zev.

  • Remote register object

    The UnicastRemoteObject can register OBJECT by the export method. Is it feasible to register the object remotely to a seperate machine?
    e.g.
    Machine A register object A at Machine B
    Machine C invoke RMI on Machine B and use object A
    If it works, i can eliminate the RMI from Machine B to Machine A.
    Otherwise, i need to invoke twice of RMI, C --> B then B --> A since we don't want to run C-->A directly.

    The UnicastRemoteObject can register OBJECT by the
    export method.No it can't. What it does is to export it from the current machine.
    Is it feasible to register the object
    remotely to a seperate machine?The question makes no sense as stated given the terminology error.
    Machine A register object A at Machine B
    Machine C invoke RMI on Machine B and use object ATo put it correctly, once a remote JVM B has acquired a remote reference to a remote object exported from A, it can pass it to another JVM in the same or another host, say C, and JVM C will then communiate directly with the original host from which A was exported when calling methods on A, without involving B in the exchange.

  • Wana XI objective questions

    Hi all,
    any body wants XI certification objective questions I have some that please contact me on personal mail id
    [removed by moderator]
    I will forward that doc.
    Thanks & Regards,
    Ashok Kumar.M
    Selling certification questions is illegal and point mongering for them is not a respected community activity - [by moderator]

    Hi Ashok,
    SAP SDN is a devloper forum where Professional Developers all around the world discuss their issues and share knowledge among themselves for any support.
    Please dont post this type of questions on this forum in near future for any personal gains.
    Thanks
    Prasad

  • Registering a child of registered object goes into endless recursion

    Hi
    Looks like we have found another bug in toplink.
    test scenario: object A have a indirection relation 1:1 with object B
    Lets register object A. Everything works fine. Lets register that cloneA1 again. It is fine again ( registration returns same object).
    Now lets ask cloneA1 for related object B : cloneA1.getB(). Works fine. And we know that it retirn registeres object cloneB1. Now - lets imagine that developer made a mistake (usual thing is this unperfect world) and trying to register cloneB1 again. Instead of silently returning same object instance cloneB1, toplink in going into some endless recursion which ends up with StackOverflowError:
    Received execption: java.lang.reflect.InvocationTargetException
    java.lang.reflect.InvocationTargetException: java.lang.StackOverflowError
    at oracle.toplink.publicinterface.Session.getDescriptor(Unknown Source)
    at oracle.toplink.publicinterface.Session.getDescriptor(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown
    Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractPrimaryKeyFromObject(Unknown

    The mapping of A and B is as follows:
    Both A and B are interfaces of concrete classes
    mapped with Interface Alias:
    Aimpl implements A
    Bimpl implements B
    The attribute mappings are:
    Bimpl.as is a OneToMany collection of A (bidirectional to Aimpl.b)
    and using Transparent Indirection with IndirectList
    Aimpl.b is the OneToOne "owner" B (bidirectional to Bimpl.as)
    Aimpl.b OneToOneMapping to switched to ProxyIndirection
    upon startup.
    Application code works exclusively with A and B and gets
    concrete instances from a factory.
    There's much more to the mapping, but that seems to be all
    the bits related to this problem.
    Thanks and best regards,
    John

  • Register Object OM17

    Hi people,
    When I go to check the Live Cache consistency, tcode /SAPAPO/OM17, whit one object type, the system request me the acces key for the register object.
    /SAPAPO/OM_SYNC_LC_DB
    What can i do? It´s normal to request this key here?
    Any idea?
    More thanks.
    Edited by: Ruben Torres on Jul 28, 2010 10:46 AM

    Hi Natalia
    ->What is the version of your system?
    It´s SCM 7.0 (Release 701 support package 05)
    ->Did you create the SAP message where this issue was reported?
    No
    ->It will be helpful to know what object type you selected in //om17.
    Everyone that I´ve selected I get the register object
    More thanks!
    Any suggestion?
    Edited by: Ruben Torres on Aug 27, 2010 3:55 PM
    Edited by: Ruben Torres on Aug 30, 2010 11:00 AM
    Edited by: Ruben Torres on Aug 30, 2010 3:35 PM

  • Objective question book for certification

    Hi,
    I was preparing for my first level certification CLAD. I wanted to know if there is any book on the objective questions . I have already cleared the fundamental test at ni.com. I am looking for more practise.
    Anyone who has given the test or plan to give one, please post some ways of preparing for the exam.
    Also how hard it is ?
    Any special tips for 2006 exam?
    Any help would be greatly appreciated.
    I am preparing for the exam by reading basic I and Basic II books.
    I have given couple of fundamental tests on the NI website.
    Also I keep reading and answering  NI discussion posts to check on my knowledge about Labview.
    Any other material that would be helpful in clearing the exam.
    Also according to certification FAQs the passing percentage is 70% whereas the fundamental test results will declare you Pass only when you score more than 80 %.
    What is actually the passing percentage for the exam?
    Regards
    CLAD
    Using Labview 5.1,6.1,7.1.8.0

    Passing the test myself you are required by NI not to disclose any information so where do I start?  If you have been using LabVIEW for at least a year you should be fine.  The test is constantly changing so even if I were to tell you what to study it may be all different.  I guess the best advice would be able to inspect code without running it and know what LabVIEW result will be.  If you are comfortable with loops and shift registers and understand what the result of the code wold be then you should do OK.  I know the questions was what books would help the most.  I just looked at the LabVIEW manual and managed to do fine.  Another tip would to be study the things that you typically don't use or how it is implemented.  A book will help you to a point but you need to be comfortable with LabVIEW and its wide functionality.
    Does this help?
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

  • Activex Object Question

    Hi,
    I posted this question by mistake in the LabVIEW/CVI fourms, so I am reposting it here.  I have a question about how LabVIEW "sees" activex controls.  I have a dll, which displays createable objects in the activex menu.  LabVIEW sees the type library name and I can create methods and property nodes.  Now, when I load the same dll into VB 2008, I get the self-registration error, eventhough the dll was manually registered using regsrv32.  What is LabVIEW doing to be able to "see" the activex controls inside the dll?

    Hey shivels,
    The dll you are using is working properly in LabVIEW? It seems like the problem is less with LabVIEW and more with VB2008. It might be more helpful to post your question in a forum for VB2008 to figure out why it is not working. The lowest level code that LabVIEW is using to interface with ActiveX is not information that is really make available.
    Hope this helps.
    -Ben
    WaterlooLabs

  • Help ! I cannot register object combi of class Combi

    here is the program :
    class Test_2 {
       public static void main (String [] args) {     
         Base base = new Base ();
         base.demanderNbCouleurs();
         base.demanderNbPions();
         Combi combi = new Combi ();
         Combi question = new Combi ();
         for (int i = 0; i < 5; i++) {
            question.lire ();
            enregistrer (question, 5 - i, i);
         voir (5);
       static private void enregistrer (Combi combi, int BP, int MP) {
          old_combi [nbCombis] = combi;
          old_BP [nbCombis] = BP;
          old_MP [nbCombis] = MP;
          nbCombis++;
       static private void voir (int n) {
          for (int i = 0; i < n; i++) {
             old_combi .afficher ();
    System.out.println (" "+old_BP [i]+ " "+old_MP [i]);
    private static final int NB_MAX_COMBIS = 100;
    private static Combi [] old_combi = new Combi [NB_MAX_COMBIS];
    private static int [] old_BP = new int [NB_MAX_COMBIS];
    private static int [] old_MP = new int [NB_MAX_COMBIS];
    private static int nbCombis;
    static { nbCombis = 0; }
    And here are the results :
    Donnez votre Combi sous la forme 6666 : 1234
    Donnez votre Combi sous la forme 6666 : 2312
    Donnez votre Combi sous la forme 6666 : 4562
    Donnez votre Combi sous la forme 6666 : 2314
    Donnez votre Combi sous la forme 6666 : 1122
    1 1 2 2        5 0
    1 1 2 2        4 1
    1 1 2 2        3 2
    1 1 2 2        2 3
    1 1 2 2        1 4
    old_combi , for i = 0, 1, 2, 3, 4, has the same value wich occured with the last i = 4 ! !
    I don't understand the lower thing...

    Jean-Jacques wrote:
    You said :
    Once again, you are always adding the same "Combi" object, so, of course, they all wind up with the same value. I don't understand how I'm adding the same "Combi" object... It is in a loop :
         for (int i = 0; i < 5; i++) {
    question.lire ();
    enregistrer (question, 5 - i, i);
    }The method ' lire () ' affects a new value at each step, and this would be registered by the method ' enregistrer () '
    I'm new to Java and I have en habit of mind contracted in Pascal programming. Making an array of different 'questions' should not be a problem...
         for (int i = 0; i < 5; i++) {
            Combi question = new Combi ();
            question.lire ();
            enregistrer (question, 5 - i, i);
         }

  • ADF View objects question

    Hello,
    I created a view object (which bases on an entity object) that I'd like to use for searching for records in a table called "CARS". Cars will be searched by names. I also have a JSP page for adding cars (administration functionality).
    The situation is as follows:
    1. I go to the page for adding cars and click "Submit" (which only submits data without committing to the database).
    2. Then I have validation errors (which is ok because some fields are mandatory).
    3. I search for cars by name.
    The funny part is that if I search for cars with given names, I get those cars AND I get the empty row with this new car I'd tried to add just a moment ago. It's definitely not yet in the database and the name of this car is not set (so it shouldn't match with the name I'm searching for).
    My question is: why is it happening and what should I do to get the rows created but not yet committed not appear in the search results?
    I tried to use clearCache() method of ViewObjectImpl but the result is still the same.
    Please help because I desperately need this for my diploma project.
    Thanks,
    Anna

    I run: "java -Djbo.viewlink.consistent=false -jar oc4j.jar" and I still get new rows. I'm using OC4J 10g (9.0.4.0.0) standalone that comes with JDeveloper 10g (9.0.5.2) on Linux.
    And about that Create pages: I mean I click on a link "New something" 3 times (for example). I don't use the browser back button because I have my menu on each page. In this case I'm just curious if it's possible to somehow "overwrite" previous "new" rows with the most recent one.
    I thought I would need that but now I know I need something else.
    Imagine such a situation:
    1. A user wants to create a new row or update an existing one.
    2. They start filling the form and submit it (in my case it's committing at the same time)
    3. During validation it turns out that some required values are missing so the user has to enter them.
    4. At this point the user leaves the input form and decides to add or update a different row.
    5. The user enters all the required values and this time validation would succeed. However, because of points 2. and 3. it does not.
    Now my question is: how can I make ADF somehow "forget" about the row inserted/updated in point 2. I know that ADF validates all new/changed rows at a time. But I would like to change that behavior so that it would validate only the row changed/created most recently.
    Thanks,
    Anna

  • Using ChaRM to register objects in Marketplace

    Hello,
    We want to control what changes are done to SAP standard workbench objects, using ChaRM, so that for example every time a program needs to be registered to make customer modifications in the marketplace we can do it using a ticket from ChaRM.  Then we can have an approval process and a total traceability.
    Is that possible?  Is there any alternative way to have that controlled in Solution Manager?
    I appreciate your comments.
    Regards
    Esteban

    Hi Prakhar,
    Thanks for your answer.  However the issue is a bit different.  Customer found that they want to make a modification in a standard code because of business needs.  So, they need to access to the marketplace to register that object.  No incident was created in Service Desk, no notes from SAP.  We want to have a Change Request and a Change Document to control the modifications and registration of this object.  However I did not found any action in ChaRM Change Document that allows me to access marketplace and  keep track of this registration in the change document.
    Do you have any idea?
    Many thanks
    Esteban

  • Using a registered object outside a UnitOfWork

    We are constructing a multi-tiered application using TopLink 4.6. The Model and Controller are in different JARs but are part of the same EAR. Data objects mapped in TopLink are sent by the Model to the Controller. The Controller may modify these objects locally, and send them back to the Model for persisting.
    When the Controller makes a request for a data object to the Model, the Model does the following -
    1. Gets the object from the TopLink cache through a query
    2. Gets a UnitOfWork
    3. Registers the object with the UnitOfWork to get the clone
    4. Releases the UnitOfWork
    5. Returns the clone to the Controller
    I am registering the object with a UnitOfWork, even though I am not modifying it in that UnitOfWork.
    I have to do this because the object model is very complicated. The Controller needs access to the root object, and also all of its nested parts. Using this technique, I retain the benefit of Indirection. The other option is to use a ObjectCopyingPolicy, but that is expensive as the Model is forced to do a cascadeAll copy. Also, I cannot send back the original object returned by the query because this object comes from the cache, and the Controller could end up modifying it, thus causing possible data inconsistency.
    After the Controller sends back the modified object, the Model now does the following -
    1. Check the incoming object and perform business validations
    2. Get a UnitOfWork
    3. Do a deepMergeClone on the UnitOfWork to save the object.
    4. Commit or release the UnitOfWork
    This seems to work without any problems. Will this have any other repercussions? The object is initially obtained through a different UnitOfWork, and is saved using a different UnitOfWork.
    Is there a better way of handling this situation?
    Thanks

    Hi,
    The key here is that the object is cloned (copied) and the clone (copy) is returned to the client.
    The client then makes the changes to the copy (the original is still in the session cache and has not changed)
    When the object is register, TopLink does a look-up, using the copy Object, in the session to find the original object, it then makes a clone of the original object.
    You now have three copies of the same object. The Original Object (no changes), the clone of the Original Object (no changes yet), and the copy Object (with client changes).
    The next step merges the Original Object Clone (without changes) and the copy Object Clone (with changes).
    Now your system has two copies, The Original Object (no changes) and the clone Object (with changes).
    Now on commit, TopLink compares the Original with the Clone and updates the DB.
    Raanan.

  • Oracle Apps Objective question and answers

    Hi all,
    We need Oracle Apps(DBA, Tech & Funct) objective type questions with answer.
    Can you any one help to find the questions. Even if they are any links, dumps, doc please post them.
    Thanks,
    Ramaraju.

    HI Ramaraju,
    You can search for FAQ related to topics like adpatch, cloning etc etc
    Google should be your friend
    for DBA check this out its the best book
    Cracking the Oracle Apps DBA Interview: 325 Frequently Asked Questions  – June 12, 2009
    by Joyjeet Banerjee (Author)
    for technical
    http://oracleappstech12.blogspot.com/2012/08/oracle-apps-technical-interview.html
    Oracle Apps Technical Interview Questions, Answers for Freshers and Experienced asked in Job Interviews
    http://oracleapps4u.blogspot.com/2011/07/oracle-apps-interview-questions-and.html
    etc etc
    well for functional it depends on the module
    I'm not aware  of  any dump which covers all (administration, technical and functional )  of them so you need to Google as per the module for functional
    ApPsMaStI
    sharing is Caring

  • ABAP Objects Questions

    Hello Everyone,
    I hope someone could answer the following questions:
    Please look at the below ABAP code
    data: zVar(30)                type c value 'ZTEST_CLASS',
            methodName(30)    type c value 'Test_Method'.
    Question # 1:  Can I define the objVar as below or is there anyother way to accomplish this?
    data:  objVar  TYPE REF TO  zVar.  (Please note that zVar is the variable that contains the name of the 
                                                           class)
    Question # 2: Can I create the object objVar from the above question as below?
    CREATE OBJECT objVar.
    Question # 3: Can I call the method of objVar as below
    CALL METHOD objVar->Test_Method (please note that test method is a variable that contains the name
                                                             of the actual method)
    Thanks in advance.
    Regards

    All these Can be done using Dynamic programming.
    check this
    REPORT  ZTEST_CLASS.
    data: zVar(30) type c value 'ZCL_TEST1',  "<--class name
    methodName(30) type c value 'TEST'.   "<----Method name
    data: obj type ref to object.
    create object obj TYPE (zvar) .
    call method obj->(methodname).
    break-point.

Maybe you are looking for

  • Error while importing sca file in local development

    Hi, I am trying to import a sca file (MDMJ71006_0-10006189.SCA) into the local development of my NWDS. I right click on local development--> Import SC --> Gave path of SC --> Next (All DCs gets displayed) --> Finish. After clicking finish I am gettin

  • Grey progress bar on start, then shut down.

    So I have a 27" iMac (mid 2011 I think, but not 100% sure) that's unhealthy. My wife had been using the machine for a few weeks.  At some point it rebooted, and when it did, it got stuck at what looks possibly like a firmware update screen? When it p

  • Time ticket confirmation in Process Order

    Hi All, I am working on 6.0 While confirming a process order with COR6N, I have set error in case operation sequence not adhered in OPK4. but while confirming if i do not adhere the sequence still it is not giving error. What may be the problem ?

  • I have 2 iphone4 with same user name

    I have 2 iphone 4's and they both have my user name and password.  I have downloaded the Find my Phone app on both of them.  However, when I log in I can only locate phone #1 and don't seem to have any way to locate phone #2.  I need to have access t

  • Signed applet crashes

    Hello all! Has ever happened to someone that when using a signed applet, the browser crashes without giving an error or something? I made an applet that had to read a file on the server, then signed it, and when trying it, after the browser asked me