Skip to Content
Author's profile photo Dhananjay Bhoyar

Understanding the ‘Size’ parameter in SAP Clone Finder result.

In the Clone Finder result ‘Size’ parameter count could be misleading sometime. Hence it is necessary to read and understand the ‘Size’ parameter and its output. Here are few test scenarios described to clarify the ‘Size’ count and found that the SAP Clone Finder actually counts “only the lines” where section of the ABAP code has been written (pure lines of code) irrespective of ‘ABAP Keywords’ (An ABAP word that initiates an ABAP statement.) or ‘ABAP Statement’ (A complete sentence of the ABAP programming language closed with a period.)

  1. The ABAP Editor shows total 16 lines in a program which includes Header, Commented code/lines & Empty lines.Capture1.JPG.png

→The SAP Clone Finder result shows ‘Size (Total lines of code in a program) = 5’, which excludes the Header, Commented lines & Empty lines. Pure lines of ABAP code.

Capture2.JPG.png

2. Now if we combine all the lines of code into one single line….

Capture3.JPG.png

→The Size count changes to = 1. The Clone Finder counts only the lines where ABAP code has been written.

Capture4.JPG.png

3. Now if we break the ABAP Statements (A complete sentence of the ABAP programming language which close with a period.) into several lines…

Capture5.JPG.png

→The Size count now changes to = 10. This iterates the fact that the SAP Clone Finder ‘Size’ parameter actually counts only the “lines” where code has been written excluding a Header, Commented lines and Empty lines.

Capture6.JPG.png

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Martin Maruskin
      Martin Maruskin

      Hi Dhananjay,

      this feature is new to me. Where can I see SAP Clone finder? I mean from which tcode is the tool accessible?

      thanks

      m./

      Author's profile photo Bjoern Panter
      Bjoern Panter

      In any ABAP system using tcode CCAPPS or /SDF/CD_CCA

      Author's profile photo Martin Maruskin
      Martin Maruskin

      Thanks Bjoern, tcode /SDF/CD_CCA is working in my system based on SAP_BASIS 731 PL 03 ABAP system.

      cheers

      m./

      Author's profile photo GERARDO MARTIN GOZALO
      GERARDO MARTIN GOZALO

      Hi,

      I am working with Clone Finder and It looks like only found first result.

      /wp-content/uploads/2015/01/cf1_628999.png

      There are 2 clones

      it found the class ZCL_GRFN_POWL_INBOX_OLD_SP8 copy from CL_GRFN_POWL_INBOX. It is OK, but it didn’t find ZCL_GRFN_POWL_INBOX that it is a clone too.

      /wp-content/uploads/2015/01/cf2_629024.png

      Other problem is when I  try to Compare methods


      /wp-content/uploads/2015/01/cf3_629025.png

      Meth prepare_alltask_filter and prepare_task_filter same than standard but it is not true.

      /wp-content/uploads/2015/01/cf4_629026.png

      Discrepancies:


      /wp-content/uploads/2015/01/cf5_629030.png

      /wp-content/uploads/2015/01/cf6_629031.png

      thanks and regards