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

Delete SAP class

Former Member
0 Likes
4,415

I tried to delete a custom class in se80 or se24, but got an error says 'You cannot perform this action in modification mode'. I tried many things such as changing the code from display mode to edit mode, or switching off assistant under edit-> modification operations, but still got the same error. I would really appreciate if any of you could shed some lights on it. Thanks.

Joanna

I tried to delete a custom class in se80 or se24, but got an error says 'You cannot perform this action in modification mode'. I tried many things such as changing the code from display mode to edit mode, or switching off assistant under edit-> modification operations, but still got the same error. I would really appreciate if any of you could shed some lights on it. Thanks.

Joanna

11 REPLIES 11
Read only

Former Member
0 Likes
3,797

hi Joanna,

go to transaction SE24, delete from the initial screen after entering the class name.

<b>Dont click</b> display/change in the screen, but click <b>delete button on the application toolbar (6th button</b>) (<b>SHIFT+F2</b>).

hope this helps,

Sajan Joseph

Read only

0 Likes
3,797

Sajan,

Tried that but still got the same error.

Joanna

Read only

Former Member
0 Likes
3,797

Hi Joanna,

Please try this.

SE24 -> Enter Object type -> Change -> Utilities -> Clean Up -> Method includes.

Then go back to SE24 -> Enter Object type -> Delete.

Regards,

Ferry Lianto

Read only

0 Likes
3,797

Ferry,

Tried your suggestions, but didn't work either.

Joanna

Read only

Former Member
Read only

0 Likes
3,797

Jagarlamudi,

I read the link that you sent, but doesn't really help.

Joanna

Read only

Former Member
0 Likes
3,797

ho Joanna,

Please do a where used list search for this class; i was wondering if you are using some instances of this class (a very wild guess)!

Also please ensure that you dont have another session with this class in edit mode (though in this case, the error message would be different).

Also, goto sm04 to see if you have some sessions which you got terminated due to dump errors (in that case kill those sessions).

hope this helps,

Sajan Joseph.

Read only

0 Likes
3,797

Sajan,

Acutally it's a brand new custom class that I just created. I haven't got to the point to create methods or instances yet. The reason that I want to delete and then recreate it is that I forgot to add its superclass when I created it the first tme. Any other suggestions?

Joanna

Read only

0 Likes
3,797

Hi,

I found the solution. I switched off assistant under Edit-> Modification operations, and was able to delete the class. Thank you all for your help. Have a good day.

Joanna

Read only

YMB1
Product and Topic Expert
Product and Topic Expert
0 Likes
3,183

Hi
I am also facing the same issue, I have tried to switch off assistant under Modification operations But I don't have that option, Is there any other solution for this. can you please help me with this? 

Read only

0 Likes
3,098

Hi YMB1
did you try to change package assignment in se80 to another custom package(Z package) and then erase from there?