‎2009 Mar 11 9:42 AM
HI,
Can anyone tell me how to use scov transaction code. I had run my program for unit testing, now i want to know is there any unused code in my program. How can i achieve it using scov tcode.
Thank you,
Regards,
Kusuma.
‎2009 Mar 11 9:50 AM
Hi Kusuma,
You can do one thing for unused variables in the program
Go to Program>check>Extended program check>
in that selec the chekc boxes Character Strings and Field Attributes and execute..
you will find the unused variables.
hope it helps you.
Thanks!
Edited by: Prasanth on Mar 11, 2009 3:20 PM
‎2009 Mar 11 9:53 AM
hi prashanth,
I do not want to see unused variables. I want know is there any unneccesary code present in my code.
thanks for ur response,
kusuma.
‎2009 Mar 11 9:50 AM
‎2009 Jun 03 3:17 PM
To see it:
Run SCOV, and click on Details (under display).
On the settings tab, enter the selection criteria to find your program.
In the output list, find your program and double-click it.
This displays all processing blocks. If the icon is red, then that code has not been executed. This way you can find for example subroutines that are not used, or have not been tested.
Cheers,
Edwin.