Blogs

Ivan Femia

Simple ABAP Clone Hunter
Ivan Femia Active Contributor Platinum: 2,500+ points SAP Mentor
Business Card
Company: Techedge
Posted on Mar. 27, 2009 07:12 AM in ABAP, Open Source

URL: http://www.plinky.it/blog/index.php/2009/03/23/simple-abap-clone-hunter/

Subscribe.Subscribe
Print. Print
Permalink Permalink
Share
image

In this period I'm involved in many upgrade projects and one of the biggest effort is to adjust ABAP copied from SAP standard ones that I call CLONEs.

In my experience pure custom ABAPs require few adaptations (obsolete statements, obsolete function modules and so on),modifications are also well managed by modification assistant but rearranging clones is a nightmare! They usually contain a lot of INCLUDEs and call a lot of Function Modules that change so much during the upgrade.

The first step to solve a problem is to know where it is. In this case it means to have a working list of CLONEs.

Sergio Ferrari, colleague of mine and SAP mentor, suggested to me to have a look to the function module 'RS_COMPARE_WORDS_SIMILAR';it is very powerful and during a night I developed the report that follows.

We extended it with a lot of other logic andit’s now part of the Techedge X-RAY toolbox that we use to analyze SAP ERPsystems before upgrades and EhP.

The Simple ABAP Clone Hunter (lite), that I’mgoing to share with the community, tries to match each custom ABAP object witha standard one comparing the report name.

The scope of this report is not to identify univocally a standard one but is to give a rated list of possible matches.

 

 

Selection screen:

image

 

Result:

image

 

Thanks to Sergio Ferrari for the support

Related weblogs:

 

Installing procedure

Import the nugg file on http://code.google.com/p/abapclonehunter/ using SAPLink.

Activate all the objects

 

And now Enjoy!!!!!

 

Related blogs

SAP obsolete functions (1) - POPUP_TO_CONFIRM

How many exit routines are active in your SAP ERP system?

Community Call: Obsolete Function Modules replacement MATRIX for ECC 6.0

Ivan Femia  Active Contributor Platinum: 2,500+ points SAP Mentor SAP Mentor & SAP NetWeaver Consultant at Techedge follow me on Twitter @IvanFemia


Comment on this article
Comment on this weblog
Showing messages 1 through 11 of 11.

Titles Only Main Topics Oldest First

  • Simple Clone Hunter
    2009-11-26 21:34:43 harish kollipara Business Card [Reply]

    Hi Ivan


    As per code of the simple clone hunter , It only searches for a percentage of match in the program names but doesn't look into the code of the programs.
    As per my observation,this clone hunter does not give the accurate report it just says there are similar custom programs with the standard program names but not with code.
    For Ex: A Stanadard program KTEST1.I have a custom program with name ZTEST1 with no where related to KTEST1 in terms of coding. But your clone hunter gives a match of about 80+ as rating , which is wrong perception. So please check this once.

    • Simple Clone Hunter
      2009-11-26 23:55:15 Ivan Femia Business Card [Reply]

      Hi Harish,


      I would like to underline that this is the lite version; The full version has more functionalities and is it more accurate in the clone detection.


      Regards,
      Ivan

      • Simple Clone Hunter
        2009-11-27 00:06:19 harish kollipara Business Card [Reply]

        Hi Ivan,
        Ok then its good that u r aware of the issue I mentioned.
        So in the full version u are taking into consideration of the coding part also right.
        when can we expect the full version to be released.
        • Simple Clone Hunter
          2009-11-27 00:13:42 Ivan Femia Business Card [Reply]

          Hi,


          I don't know right now.
          Btw the scope of this report is not to identify univocally a standard one but is to give a rated list of possible matches.


          Regards,
          Ivan

  • Issue with includes clones.
    2009-03-27 14:03:01 Igor Kozak Business Card [Reply]

    Hi Ivan, thanks for nice program.
    I was trying to 'find' some known clones in our system using your code.
    Your program did not find anything for program types 'I'.
    I found a problem: in FORM calculate_rating you consider only program types '1', 'F' and 'M'. What is the reason?
    After I had extended the existent condition to include also 'I' programs, everything was working fine.


    Regards,
    Igor.

    • Issue with includes clones.
      2009-03-27 15:25:00 Ivan Femia Business Card [Reply]

      Hi Igor,


      thanks for your feedback, this is not a bug it's an our choice. We limited the search (even if the logic works fine also for include) to function, reports and module in this lite version.


      Regards,
      Ivan

  • Great!
    2009-03-27 08:43:38 Andrea Olivieri Business Card [Reply]

    Ciao Ivan,
    but aren't you going to stop?
    This is a great Abap.
    we're waiting for the heavy version ....
    Andrea
  • Looks very nice...
    2009-03-27 07:45:18 Alvaro Tejada Galindo SAP Employee Business Card [Reply]

    Ivan:


    Thanks for sharing this...Looks very nice -:) And if Sergio helped you...I'm sure it's even a greatest project -;)


    Greetings,
    Blag.


Showing messages 1 through 11 of 11.