‎2007 May 23 7:33 AM
Can any tell me
what is dead code in reports?
Thanks in adv
Nagi
‎2007 May 23 7:35 AM
I am not quite sure but it can be 2 things:
1) Code that might never be executed as per the logic of the program.
For example, the code in IF-Endif block where the condition will always be false or unused routines & variables.
2) commented code
‎2007 May 23 7:37 AM
Hi,
Dead Code (Program -> Check -> Extended Prog. Check) - unused subroutines appear as warnings under PERFORM/FORM interfaces. - unused variables appear as warnings under Field attributes. Transaction code is SLIN. This will also catch literals
So dead code usually is the unused code
Reward Points if useful
‎2007 May 23 7:37 AM
Commented line's are called Dead Code ....
while developing an program you will be writing all sort of filtering , select query's ..etc ..
when it is finely tuned then you will be commenting it by \* this is called Dead Code.
even this will be taken in th e performance issue ... because your whole program lines will be ther in the buffer , so the dead code will also occupy some mmory which is not requeired .
reward points if it is usefull ....
Girish
‎2007 May 23 7:38 AM
hi ,
dead code is nothing but the code which is not useful and helpful in filling ur requirement in a prgm.
for ex: when u created a variable BUT in our prgm and u didnt used it any hwere in ur prgm then BUT is called as a dead variable.
if helpful reward some points.
with regards,
suresh babu aluri.
‎2007 May 23 7:39 AM
Hi Veeranagi,
Dead codes are the unused codes in the report.
If you can do an extended syntax check in a 6.40 system, it will show code that can't be reached.
Regards
Sarath
‎2007 May 23 7:39 AM
Dean code is unwanted code..
do a SLIN test or a you can use the tool code inspector.
regards,
‎2007 May 23 7:41 AM
‎2007 May 23 7:40 AM
hi,
1) for ex there is code like this.
*perform fl_dofirst.
perform fl_dosecond.
form fl_dofirst
-
-
-
endform.
-- in this we hav commented the perform & it is having some code, hence it will not be get executed.... it is a dead code....
With Regards,
S.Barani
‎2007 May 23 7:40 AM
Hi,
The code which is not going to be executead at run time is called dead code.
It includes comments, unnecessary conditions, variables that are not going to be used.
Thanks
Sandeep
Reward if helpful