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

what is dead code in reports?

Former Member
0 Likes
1,685

Can any tell me

what is dead code in reports?

Thanks in adv

Nagi

9 REPLIES 9
Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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.

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

Dean code is unwanted code..

do a SLIN test or a you can use the tool code inspector.

regards,

Read only

0 Likes
1,202

A dead code is a code that's never been executed, ever.

Read only

Former Member
0 Likes
1,202

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

Read only

Former Member
0 Likes
1,202

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