Removing Unused Data Declarations
You use this procedure to remove unused data declarations by means of the Refactoring Assistant.
...
1. In the Object Navigator (transaction SE80), navigate to your program.
2. Switch to change mode.
3. In the source code, open the context menu with the secondary mouse button and choose Refactoring → Delete Unused Data Declarations.
The Refactoring Assistant Wizard appears.
4. Choose Continue.
An overview screen appears with the name of the program.
5. Choose Continue.
The final screen of the Refactoring Assistant Wizard appears.
6. Choose Save.
All unused data declarations in the code are deleted.