If you want to know how much custom code lines you SAP system has, you can simply use the transaction /SDF/CD_CCA
(or report /SDF/CD_CUSTOM_CODE_CONN_GUI
) and choose SAP Clone Finder.
When you start the SAP Clone Finder, you need to choose:
/0CUST/
for the namespaceZ*
for package (or any other packages you want to analyze)Similarity Check Off
needs to be activated
and run (F8) the report. The resulting ALV-Grid will show you the count of custom code lines in your system: