Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to count source code lines?

Petr_Plenkov
Active Participant
0 Likes
1,417

Hi guys!

I have a task to calculate total amount of lines of source code. The only way i have found out is to get report

with read report prog into itab statement and get number of lines with describe itab lines num_of_lines.

But in this way it is not possible to handle classes for example. Is it possible to count lines with SQL statement?

1 ACCEPTED SOLUTION
Read only

andrea_olivieri
Contributor
0 Likes
999

Hi

check this blog

[How many lines of custom ABAP code are inside your system? u2013 Part2|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17078] [original link is broken] [original link is broken] [original link is broken];

Regards,

Andrea

3 REPLIES 3
Read only

former_member583456
Active Participant
0 Likes
999

Hi,

try this report [https://wiki.sdn.sap.com/wiki/display/Snippets/SearchforStringsinABAPSourceCode].

For counting the lines you specify a search string of

*

The includes for classes can be specified by

ZCL_XY*

Best regards

Thomas

Edited by: Thomas Schulz on May 4, 2010 1:33 PM

Read only

andrea_olivieri
Contributor
0 Likes
1,000

Hi

check this blog

[How many lines of custom ABAP code are inside your system? u2013 Part2|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17078] [original link is broken] [original link is broken] [original link is broken];

Regards,

Andrea

Read only

0 Likes
999

Thanks a lot you guys for your answers!!