how many lines of custom ABAP code are inside your system? of the ABAPSloc, released at the beginning of 2009, counts the lines of custom ABAP sources in a SAP system and it is the brainchild of my colleague and good friend of mine sergio.ferrari2/blog. This release evaluates SLOC index only in Programs, Function Groups and Classes.
On January 2011, ABAPSloc moved to the new SAP Code Exchange platform. This was not only a change of platform, we also released a new version of the tool introducing several improvements such as a new evaluation of module pools programs with the related INCLUDE sub-objects.
This version manages also the abap code located inside the print forms; in the SmartForms the lines of custom ABAP Code for Global Types, Form Routines and Initialization are included. In the AdobeForms, the lines of custom ABAP Code for Form Routines and Initialization are counted, as for the SmartForms.
ABAPSloc Version 2.2
Today we release the new version 2.2 which provides us the possibility to count the lines of ABAP code inside SmartForm “code nodes”. This release fixes also a bug that I discovered in the evaluation of the object type CLASS.
How it looks like
The following objects are currently out of scope
Web Dynpro Components
Enhancement implementations (hook, class, etc. ...
What comes next
We have an issue (Enhancement) in the Code Exchange in order introduce the possibility to count the lines of ABAP code in WDA; only controller methods and handler methods should be included.
Moreover the program has a strong need for restyling 😉
SLOC it's now available as Code Inspector check (SCI) and it's part of CloneFinder in SAP Custom Code Applications (Just start tcode /SDF/CD_CCA) and for this reasons is quite useless to continue the development of this tool.
However, given the number of requests received in SCN, I set up a repository in GitHub; you can download the ABAPSloc here: