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: 

how to filter my abap code from useless variables !

0 Kudos
851

Hello ,,

I have a program its about 3000 lines, I have defined during working several variables, structures ,.. and so on.

Is there any easy way to delete these useless objects !? 

1 ACCEPTED SOLUTION

Former Member
0 Kudos
274

You can do an extended program check to determine the unused definitons.

BR,

Gábor

3 REPLIES 3

Former Member
0 Kudos
275

You can do an extended program check to determine the unused definitons.

BR,

Gábor

former_member197916
Active Participant
0 Kudos
274

hi,

Go to SE38

Go to Menubar ---> Program ---> Check -


> Extended Program Check / Code Inspector.

you can also use slin but i would recommend you to go through the following link which is the best way.

https://help.sap.com/saphelp_nw74/helpdata/en/4e/c844006e391014adc9fffe4e204223/content.htm

hope it helps

Former Member
0 Kudos
274

Maybe that's a chance for you to switch to ABAP in Eclipse. There you have a refactoring function, which deletes all unused variables.

If this is no option for you, you have to use the Extended Program Check as already mentioned by the other guys.