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.
Showing results for 
Search instead for 
Did you mean: 

SE80 creating multiple copies or using old versions of include files

Former Member
0 Kudos

I am attempting to edit a regular ABAP program in SE80 and have suddenly starting having problems with Include files. I am not sure what is happening but it appears that if I edit and save an Include there may be more than one copy saved and I cannot determine or control which copy is being used.

Example: I have a structure defined in the TOP Include and it is referenced in other parts of the program. I then alter the structure, change its name, and save. I also change the name at every occurrence throughout the code.

When I attempt to activate the program I get errors from FORMS sections stating that the new structure name is not defined but there is another structure with a similar name which is the old name. I also get errors from the TOP Include saying the old name is not defined but there is a structure with a similar name which is the new name. To make matters worse this error message refers to a specific field on a specific line but when I view that line that field name is not there.

It looks like the activation is trying to active an old version of the source code and it does not match the code I am seeing. I cannot correct the error due to my seeing code that does not contain it. I am not the only developer using SE80 or editing ABAP code but I appear to be the only one experiencing this problem.

I also created an entirely new program from scratch. I edited and saved. I was met with the same problems anew.

Any help or insight would be much appreciated.


Former Member
0 Kudos

you need to activate both includes together..along with the main program

0 Kudos

I have done that. I have activated them collectively and individually. The only difference is the order in which the errors are displayed.

I would like to emphasize that the error messages refer to code that is no longer in the program. Code that was changed in or removed from a previous instance of an Include such as before a module was saved.