Compare XI objects

I have two questions.
1. Which Tcode can be used to compare two XI objects crossclient just as SE39 does this job for abap.
2. Given a scenario.Ex in DEV i have mapping object X .In PRD same object has already been moved befor e, but not by CTS+
or CMS  (i mean only file transport).
Now i try to use CMS or CTS+ today.Will transport management system not deny me saying that previous versions are not identical?(Looking for an expert opinion here).

>>Mr Jaishankar ,there are so many UDF's ,Huge mapping (graphical),Fixed values.How can one guess a change ?.
You can't. That is why I said it is manual and not automatic.
>>I remember a gentleman from this forum itself applauding about XI transport system and consulting me to go through version and change management.I am actually impressed gentleman.
May be the gentleman knows more than me.
>>I attribute this to poor design of XI ,whether its repository managment,change management and transport management.
You are comparing an ABAP object with a Java object (and not just a java code but a graphical representation of a Java code) here. Remember there is a lot of difference. But I agree, it could have been better and let us wait for other experts opinion before saying this is all bad.
Regards
Jai

Similar Messages

  • Assistance in comparing 2 Objects

    I have got a problem... I am currently trying to compare 2 Objects together and checking upon their IDs and after that is done, it will then update the quantity of it... Below is my coding and hopefully, it will share some light on what I am trying to achieve...
    [Bindable]
    private var shopCartXML:XML = new XML(<product></product>);
    [Bindable]
    private var shopCartData:XMLListCollection;
    private function addCart():void
                    var itemUpdate:XMLList = shopCartXML.product.(@category==musicTree.selectedItem.@category);
                    //var itemUpdate2:XMLList = shopCartXML.product.@id == musicTree.selectedItem.@id);
                    var testUpdate:Object = musicTree.selectedItem.@id;
                   for  each (var item:Object in shopCartXML)
                       // 0 returns true, 1 and -1 for differences
                       var testItem:int = ObjectUtil.compare(item.product.@id, testUpdate, 0);
                        trace (testItem);
                        if ((testItem)  && (itemUpdate.length() > 0))
                            itemUpdate.sing_quantity = Number(itemUpdate.sing_quantity) + 1;
                        else
                            var newData:XML =
                                                    <product id={musicTree.selectedItem.@id} category={musicTree.selectedItem.@category}>
                                                        <name>
                                                            {musicTree.selectedItem.@name}
                                                        </name>
                                                        <category>
                                                            {musicTree.selectedItem.@category}
                                                        </category>
                                                        <sing_price>
                                                            {musicTree.selectedItem.@sing_price}
                                                        </sing_price>
                                                        <sing_quantity>
                                                            {musicTree.selectedItem.@sing_quantity}
                                                        </sing_quantity>
                                                    </product>;
                             shopCartXML.appendChild(newData);
                            // We create the XMLListCollection as this will bring alot of functionalities like binding of data or update upon new changes
                            shopCartData =  new XMLListCollection(shopCartXML.children());           
    Basically, I am trying to do is that after the the click of the button, it will come to this addCart function and within this function, it would firstly create a shopCartXML of XML and update the details into the shopCartData and it would be displayed into the data grid. But the real problem with this is that, I would want to validate on the product's id and its category. Because, at the moment, it will only validate on the category but not on the ID. Thus, when I have got 2 items of the same category but different IDs, it will only increase on the quantity of the 1st item, which I have added but it will not add the 2nd item to the data grid and it will only increase on the quantity of the 1st item....
    I been working on this for 2 nights and still I have not managed to come up with a solution to solve this problem... Any ideas on where I am going wrong?? I tried my hands on ObjectUtil.compare and for each in loop but still I am not able to compare the shopCartXML ID and the Tree control selectedItem ID...

    Hi there, what is your issue?
    Sincerely,
    Michael
    El 10/05/2009, a las 21:20, addytoe85 <[email protected]> escribió:
    >
    I have got a problem... I am currently trying to compare 2 Objects 
    together and checking upon their IDs and after that is done, it will 
    then update the quantity of it... Below is my coding and hopefully, 
    it will share some light on what I am trying to achieve...
    >
    private var shopCartXML:XML = new XML(<product></product>);
    >
    private var shopCartData:XMLListCollection;
    >
    private function addCart():void
    >
                    var itemUpdate:XMLList = shopCartXML.product.
    (@category==musicTree.selectedItem.@category);
                    //var itemUpdate2:XMLList = shopCartXML.product.@id 
    == musicTree.selectedItem.@id);
                    var testUpdate:Object = musicTree.selectedItem.@id;
    >
                    for  each (var item:Object in shopCartXML)
    >
                        // 0 returns true, 1 and -1 for differences
                        var testItem:int = 
    ObjectUtil.compare(item.product.@id, testUpdate, 0);
                        trace (testItem);
    >
                        if ((testItem)  && (itemUpdate.length() > 0))
                            itemUpdate.sing_quantity = 
    Number(itemUpdate.sing_quantity) + 1;
                        else
    >
    var newData:XML =
                                                    <product 
    id={musicTree.selectedItem.@id} 
    category={musicTree.selectedItem.@category}>
    >
                                                        <name>
    {musicTree.selectedItem.@name}
                                                        </name>
    >
                                                        <category>
    {musicTree.selectedItem.@category}
                                                        </category>
    >
                                                        <sing_price>
    {musicTree.selectedItem.@sing_price}
                                                        </sing_price>
    >

  • Compare DB objects between different schemas

    Hi,
    I want to compare db objects beween 2 different schemas like QA and PROD.
    Please suggest me a tool that compares table definitions,stored procedures and other db objects between different schemas.

    Did you check the above video link which is shared?
    Yes I'd agree with you and also i faced these situations to check what objects i need to export from Dev to Quality ( to analyze what are already correct or what have to be imported again)
    Generally Quality & Prod are in sync.
    Also will be waiting along with you if anyone comments on any such tool.
    Regards,
    Krishna Tangudu

  • Using expression to compare Calendar object

    Hi,
    I wonder if anyone has experience to use expression to compare Calendar object. Here is my case:
    Application {
    Calendar applicationDate;
    What I want is something like:
    expression.get("applicationDate").between(startDate, endDate);
    But it is seems not working this way.
    Any clue?
    Thanks
    Hao

    What error are you getting, in general this should work, however the Calendar will be printed/bound as a java.sql.Timestamp.
    If you require to use java.sql.Date if you just want the date portion of the Calendar.
    If your mapping for applicationDate sets the fieldClassification (i.e. is a TypeConversionMapping), then TopLink will automatically convert the Calendar value in the expression to the correct date type.

  • Want to compare same object in different systems

    hi all,
    i want to compare same object in different systems
    example:
    same transfer rule in BID to be compared with the one in BIT/BIP
    in these kind of cases, pls help me on how to do the comparison.
    as i have to do some enhancement in BID and release that changes to BIT/P. but while manually checking i might also miss out any important changes which might create issues.
    pls suggest.

    Could you please use the below table for comparision.
    Cubes      RSDCUBE
    DSO's (to identify DSOu2019s based on time stamp field)     RSODSO
    Multiproviders     RSDCUBEMULTI
    Infosets     RSQISET
    Trasnformations      RSTRAN
    DTP's     RSBKDTP, RSBKDTPSTAT
    Trasnfer strcuture     RSTS
    Infopackages     RSLDPIO
    Update Rules     RSUPDINFO
    Aggregates     RSDAGGDIR/RSDAGGDIR
    Process Chians     RSPCCHAIN
    OHD's     
    data sources status      ROOSOURCE,RSDS
    Regards,
    Saveen Kumar

  • Compare 2 objects - urgent

    hi all
    i have a problem.
    I want to compare two objects but dono how.
    Object obj1=null, obj2=null;
    Vector vec = new Vector()
    obj1=vec
    Vector vec1=new Vector()
    obj2=vec
    now i want to compare if(obj1 == obj2)
    how can i do this
    help out plzzzzzzzzzzzzzzzzz
    thanx

    Nope, I'm still scratching my head over this one.
    However, there are two comparisions in java.
    ==, and .equals() method
    == just checks to see if the Object is the same Object
    .equals() is defined to check if one Object is equal to another.
    quick example:
      String s1 = new String("Hello");
      String s2 = s1;
      String s3 = new String("Hello");
      String s4 = new String("GoodBye");
      s1 == s2;  // true because they are the same object
      s1.equals(s2) // true because they have the same underlying value
      s1 == s3  // false because they are different objects
      s1.equals(s3) // true, because the are the same underlying value
      s1 == s3 // false
      s1.equals(s4)// also falseAny time you want to compare the VALUE of two objects, use the .equals method.
    So in this case,
    if (oldObj.equals(newObj)) is the way to go
    If you are dealing with vectors/lists, the equals method will compare every item in oldObj with every item in newObj. If they are all equal, then it will return true.
    Hope this helps,
    evnafets

  • Comparing two Objects

    Hi, I want to compare two objects
    using the formula below
    if((Integer)v.elementAt(i) == new Integer(comp.getCard(j).getValue())){but it doesn't work
    I am trying to compare an element in a vector which was of a type Integer
    key1 = new Integer(dk.getCard(f).getValue());note that key1 is actually a key used for a mapping
    can anyone tell me how I can compare the elements in vector and the other object was an int.

A: Comparing two Objects

Hello zainuluk,
You can not use '==' operator to compare to objects in Java, 'cause it just compare the reference of two oprands. You should use the "equals()" method, just like this:
if(Integer)v.elementAt(i).equals(new Integer(comp.getCard(j).getValue())){...}
Or you can get the int value of element in the vector to compare using '==' operator:
if(Integer)v.elementAt(i).intValue() == comp.getCard(j).getValue()){..}

Hello zainuluk,
You can not use '==' operator to compare to objects in Java, 'cause it just compare the reference of two oprands. You should use the "equals()" method, just like this:
if(Integer)v.elementAt(i).equals(new Integer(comp.getCard(j).getValue())){...}
Or you can get the int value of element in the vector to compare using '==' operator:
if(Integer)v.elementAt(i).intValue() == comp.getCard(j).getValue()){..}

  • How to compare 2 Objects( and )?

    Should I write an interface?

    Java has 2 interfaces that would be of interest to you.
    They both are designed to return an integer that describes the relationship between two objects.
    Suppose you have two objects: objectA and objectB
    The return value is as following:
    if (returnValue < 0) then objectA precedes objectB. (A < B)
    if (returnValue > 0) then objectA follows objectB. (A > B)
    if (returnValue == 0) then objectA and objectB are equivalent (A == B).
    It is up to you to do the comparing and determine which is the correct return value...
    Here are the two interfaces:
    1) Comparable interface (java.lang.Comparable)
    You would use this interface when you have a class that exhibits some natural order..
    You add this interface to the class, and, within the class, implement the following method:
       public int compareTo( Object obj )
       The variable obj in this case refers to the "other" object that you want to compare.
       public class MyClass implements Comparable // <--- notice the last two words!!
              other methods.
          public boolean isTallerThan( MyClass mc )
             // just some method i made up to compare...
          public int compareTo( Object objectB )
             // You are comparing "this" object with the "otherObject"...
             // Note that objectA is "this".
             MyClass otherObject = (MyClass)objectB;
             // Do whatever you need to compare the two.
             if (this.isTallerThan(otherObject) )
                 return -1;
             else if ( otherObject.isTallerThan(this) )
                 return +1;
             else
                 return 0; // they are of equal height...whatever...
       2) Comparator interface (java.util.Comparator)
    You could use this interface if you have a different set of standards with which to compare two different objects. Usually, it is it's own class, designed for only this purpose. You implement the following method:
       public int compare( Object objA, Object objB )
       Notice that in this case you have to explicitly pass in both objects to be compared, whereas in the Comparable interface, objA is implicitly assumed to be the object on which the method is called (or as I like to call it, this).
    Here is an example:
       public class MyComparator implements Comparator
          public int compare( Object objA, Object objB )
             do whatever comparisons you need to determine whether
             objA < objB (-1 is returned)
             objA > objB (+1 is returned)
             or
             objA == ObjB (0 is returned)

  • How to compare two Objects !!!!

    Hi All,
    I know that this question has been asked 100 times till now. But trust me I have checked all of them but couldn`t find answer. Here is my question:
    I have an objecs. In that object I am setting (Id,Name,DOJ). Now I want to check whether the object I am trying to save in database already exists or not. If exists then I need to check whether all the setters are same for the two objects. Now can anyone tell me ,how to compare two objects directly without comparing the setters individually.
    Thanks in advance.

    pavan13 wrote:
    That is pretty good idea. However I have a query. Does that code actually compare all the setters in a two beans. I don`t want to check each setter seperately.Well, it's pretty meaningless to talk about "comparing setters", setters are methods, they don't have values to compare. Because equals is inside the class, you can simply compare the fields that get set by the setters. "Properties" is probably a better name.
    In principal you could write something that tried to find all relevant fields and compare them, using reflection or bean info stuff. The resulting code would be about 50 times longer and take about 50 times longer to run. It's hardly asking a lot to put three comparisons between && operators.
    Remember, though, not to compare string fields with ==, you should call .equals on the string fields.
    p.s. don't let the bean terminology confuse you. Beans are just ordinary objects which follow a few rules. Personally I wish the term had never been coined.
    Edited by: malcolmmc on Dec 6, 2007 4:15 PM

  • How to compare the object's properties

    Hi ,
    I have a requirement like to compare two objects data. But the object will have different types of parameters and it will have some other classes as properties. My utility has to compare for all the properties of the object including other classes properties which are included as properties in the main object also.
    Can we achieve using java reflection this requirement.
    If any one has idea reg this , plz help me.
    thanks
    Prakash

    hari_honey wrote:
    No , actually i have to generate the change log of object data.
    If any property of the object is changed and that has to go to the change log table with the
    property name and old and new value.Sounds expensive and complex.
    Presumably you can't change the code.
    Presumably you can't provide a proxy layer.
    Have you consider code injection?

  • Using TOAD and SQL Developer to compare db objects in schemas in databases

    Hi All,
    My primary objective was to compare objects in schemas in two different databases and find out the differences,
    Execute DDL's in the database where objects are missing and syn schemas in two different databases.
    So I need to compare schemas in databases. Which tool would be helpful and will be user friendly to make a comparison of database objects existing in schemas in two different databases.
    I'd like to see if I can get a list of pro and cons between Toad and SQL Developer for comparing schemas pros and cons.
    Could you please also help me on navigation in SQL Developer to compare schemas.
    Connect to Source
    Connect to Target
    Compare schemas with different object types
    Find out differences
    Generate DDL's for the missing objects or for the objects in difference report
    Run them in missing instace(Source/Target)
    Make sure both are in sync.
    Thanks All

    Hi,
    Most dba type tools have this kind of functionality - personally i use plsqldeveloper but this is very similar to most other tools on the market. SQL Developer seems to rely on you needing the change management pack licence which you likely dont have and would be quite a large cost to roll out.
    I'd compare plsqldeveloper/toad/sqlnavigator etc and maybe the tools from redgate which look pretty good though i haven't used them.
    Regards,
    Harry

  • PLS-00526 when comparing (=) 2 objects of the same kind

    Hi,
    Here are the specs :
    Oracle 8.1.7.4 Database Server
    Object definition :
    type ocedule as object
    noetabl number(15),
    ced_ceduleid number(15),
    datedebutapplication date,
    datefinapplication date,
    ced_cdtypecedule varchar2(10),
    ced_cdmotifabsence varchar2(10),
    ced_indpresentddebut number(1),
    ced_indpresentdfin number(1),
    ced_datedebut date,
    ced_datefin date,
    ced_datesaisie date,
    ced_placementid number(15),
    ced_presentdim varchar2(1),
    ced_presentlun varchar2(1),
    ced_presentmar varchar2(1),
    ced_presentmer varchar2(1),
    ced_presentjeu varchar2(1),
    ced_presentven varchar2(1),
    ced_presentsam varchar2(1),
    codemodule number(2)
    My PL/SQL code goes as follows :
    CREATE OR REPLACE function compare_ocedule return number is
    ocedule_journalisation ocedule;
    ocedule_entrepot ocedule;
    begin
         if ocedule_journalisation = ocedule_entrepot then
         return 1;
         else
         return 0;
         end if;
    end;
    when I compile, I get the following error :
    PLS-00526: A MAP or ORDER function is required for comparing objects in PL/SQL.
    Anyone can help???
    Thanks.
    JC

    hehe...right...
    I just found the problem...Testing for equality has to be done in SQL...not in PL...so I replaced the IF clause with SQL code. Here is the modified function :
    CREATE OR REPLACE function compare_ocedule return number is
    ocedule_journalisation ocedule;
    ocedule_entrepot ocedule;
    cursor c_test is
    select 1 as comp_value
    from dual
    where ocedule_journalisation = ocedule_entrepot;
    r_test c_test%rowtype;
    begin
    open c_test;
    fetch c_test into r_test;
    close c_test;
    return r_test.comp_value;
    end;
    JC

  • When using "Database diff" selecting other schemas only for compare own objects are shown too!

    Hi!
    For comparing lot of objects I use a priviliged account z, which can read Schema a and b.
    In the compare dialog I set different from the Defaults following Options:
    - step 1
    - option "Maintain"
    - step 3
    - button "More"
    - select schema a
    - button "Lookup"
    - mark all objects and shuttle to the right
    - repeat for schema b
    After the diff report is finished, schema object of account z are listed too, despite I have not selected this.
    Best regards
    Torsten

    Ah, you're using user Z to select objects from A & B?
    On step 2, do you have anything selected that you have not picked an object type for using the 'shuttle' in Step 3?
    For example, if you picked, 'procedures' and then in the wizard, didn't pick ANY procedures in A or B, it will by default use ALL of the procedures in Z for the compare.

  • Comparing java object trees

    Hello.
    I was wondering if someone might have some advice or ideas about this seemingly very common problem.
    I have two copies of a very large java object tree (original and modified). I need to compare these two trees and figure out whether any data has changed. The brute force way to do this would of course be to implement equals() method for all of my objects, but in my case this would be A LOT of work.
    So, I want to find a way to compare the two trees in a generic way.
    My first attempt was to serialize both trees into memory and then compare them on the binary level, like this:
         public boolean autoEquals(BaseDomainObject other) {
              try {
                   ByteArrayOutputStream thisObjectStream = new ByteArrayOutputStream(500);
                   ObjectOutputStream out = new ObjectOutputStream(thisObjectStream);
                   out.writeObject(this);
                   out.flush();
                   out.close();
                   ByteArrayOutputStream otherObjectStream = new ByteArrayOutputStream(500);
                   out = new ObjectOutputStream(otherObjectStream);
                   out.writeObject(other);
                   out.flush();
                   out.close();
                   return thisObjectStream.toString().equals(otherObjectStream.toString());
              catch (Exception e) {
                   throw new RuntimeException(e);
         }This actually nearly worked, except for one problem that I do not know how to address - The order of elements in collections of the modified tree might differ from the order of the same collections in the original tree, even if the individual elements are exactly the same. My serialization idea falls apart here.
    Can someone think of another way to do this?
    Any ideas would be appreciated.

    I thought I would follow up with the solution.
    The method I described above does work, but in order to make it work I had to find a way to make all elements in all collections appear in the same order. In order to do that, I needed a unique key for each object in the tree, that would be the same in both the original and the modified tree.
    In my case that was easy, b/c I get the original version from Hibernate and I make my modified version by copying it (also by serializing the original into memory and then deserializing it into my new "modified" working copy tree), so they both still contain the hibernate oids.
    The extra step I needed to do before serializing and comparing was to recurse through both trees (with Introspection) and replace all sets with a TreeSet and all lists with my own implementation of a sorted list.
    Now I can compare any tree of domain objects that extend from BaseDomainObject (they all do) by simply writing
    domainObjectTree1.autoEquals(domainObjectTree2, new String[] {"terminatorProperty1", "terminatorProperty2", ...})
    Terminator properties are basically properties which I set to null before running my comparison. This allows me to "cut off" branches of the tree that I don't want to be compared.

  • How to compare an Object of type class?

    Hi,
    I got a generic array and want to check which class it contains.
    Now i tried to use
    Class c = T[0].getClass();and later
    if(c instanceof Float){
    }but this don't work.
    So how to compare two instances of Class?
    Maybe by looking for the name of the class and compare them?
    regards.
    Olek

    import java.util.*;
    public class WorksForMe {
        public static void main(String[] args) {
            List<Object> list = new ArrayList<Object>();
            list.add(Float.valueOf(17));
            Class<?> cls = list.get(0).getClass();
            System.out.println(Float.class.equals(cls)); //true
            System.out.println(Float.class == cls); //true
    }But again, it's best to avoid this kind of case analysis.

  • Maybe you are looking for

    • Active Directory - SharePoint Replication Problem with User Information

      Hi, we have a implementation of SharePoint 2010 stand alone server, when we start to work in this server, we add the users from Active Directory services implemented in our company. This users had information like the email and department. When i add

    • Connect MTNL ADSL Modem to Airport Extreme

      Hey All, I have a MTNL ADSL WIRELESS MODEM ROUTER. The range from that router is not great and therefore planning to get another router (adsl or non) and thus make use the connectivity to the maximum. My problem is that in my house i do not get good

    • IOS4 doesn't update new Mail messages

      since the upgrade, I notice Mail during the day stops getting new mail pushed to it unless I restart. annoying and confusing... if I don't pay attention I don't get new mail. My push settings are the same... happens both for my regular email and my X

    • Export to .avi causes windows to dump QT pro

      qt pro 7.1.3 XP sp 2: ALWAYS dies if I try to export to .avi Any ideas?

    • IT0106 and RPUAUD00

      We have recently turned on logging changes for IT0006, IT0021 and IT0106.  When we run RPUAUD00 the changes for 6 and 21 are reported but the data saved in table PA0106 does not show.  Is there something else that needs to be done to have 106 data sh