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.)
- The ABAP Editor shows total 16 lines in a program which includes Header, Commented code/lines & Empty lines.
→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.
2. Now if we combine all the lines of code into one single line….
→The Size count changes to = 1. The Clone Finder counts only the lines where ABAP code has been written.
3. Now if we break the ABAP Statements (A complete sentence of the ABAP programming language which close with a period.) into several lines…
→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.