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

How to delete custom classes?

Former Member
0 Likes
2,210

Hello everybody!

I have a big problem with class deletion. In SE80, I created a new custom class for my BSP application. But I made a typo in the class name and wanted to rename it. After renaming, the old class was still there, and I could not delete it.

I got a message "Objekttyp wurde bereits gelöscht" which means "object type is already deleted".

I made several refreshes of the item tree in SE80 and signed off and on several times. But still the old class is there.

I also tried removing it with SE24, with no success either.

The class is not used anywhere, i just created it and renamed it.

How can I get rid of the unused class?

Any help would be appreciated.

Stefan

5 REPLIES 5
Read only

amit_khare
Active Contributor
0 Likes
1,342

Try this -

Utilities -> Clean Up -> Method includes

from the menu bar in the class builder.

~ As found in forum.

Regards,

Amit

Reward all hepful replies.

Read only

Former Member
0 Likes
1,342

I forgot to mention that I already did this, with no effect.

Read only

Former Member
0 Likes
1,342

With the item tree up in SE80 and the item selected, do Utilities --> Update Navigation Index.

However, you may be prevented from doing this if you cannot select the item due to it being deleted.

good luck

Brian

Read only

Former Member
0 Likes
1,342

Exactly, the menu item is not accessible.

What else could I do to get rid of that class?

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,342

Hello Stefan

First I would try to use function module <b>OO_CLASS_DELETE</b> (which has a parameter FORCE !!!).

If this does not work then you can try the <i>brute force</i> approach:

1. Create a class having the same misspelled name in <i>another </i>development system (does not matter which one).

2. Release the transport request (A) containing the class.

3. Delete the class and release the transport request (B) containing the deletion entry, too.

First I would try to import request (B) with option "Overwrite originals".

If the class is still there then I would try to import (A) first followed by (B).

Regards

Uwe