Application Development 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: 

No of lines a Report has?

Former Member
0 Kudos

Hi All,

I have a list of 6000 report names with me. I need to do unicode conversion for these reports and we need to estimate the time for that. For that one parameter to consider is to find out the number of lines each program has. I can open up each program in SE38 and sum up all the lines in each program has including its includes. but that is tedios. Is there any table in which if I enter the program name it gives me the number of lines of that report including the lines in its include. Even a function module or a report will suffice.

Thanks in advance.

4 REPLIES 4

Former Member
0 Kudos

Estimating 6000 programs in this way will be a largely, meaningless number.

If you already have the system in place,

Use transaction codes SAMT and UCCHECK - These are SAP provided apps to help in identifying issues.

former_member194669
Active Contributor
0 Kudos

Write a small utility report using fm RFC_READ_REPORT. it will give the source code in internal table ,

may be you count the internal table for no of rows.

aRs

0 Kudos

Again - doing anything regarding counting lines of code WOULD generate a number. But that number provides no meaningful way of extrapolating the amount of work required.

Use the SAP provided tools as cited above.

Please reward points accordingly. Thanks!!!

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check these FM's :

FM : SVRS_GET_REPS_FROM_OBJECT : Pass object type as 'REPS' to get the code of the Report or Include and then use DESCRIBE to know number of lines of the code

FM : GET_INCLUDETAB - To get the list of includes of a report and pass includes to above FM in a loop and sum up all the lines to know number of lines of a report with includes.

Regards

Appana