03-16-2007 2:04 PM
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.
03-16-2007 2:13 PM
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.
03-16-2007 2:27 PM
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
03-16-2007 2:36 PM
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!!!
03-16-2007 4:07 PM
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