We had the same error in the ESS WDA application after customizing.
You can copy the class trough SE24. You'll have to delete the original class you created trough the IMG.
If you have to delete the enhancement spot as well you can do this in SE20.
If you copy the class trough SE24 all methods, attributes and so on. Then apply your code in the right Method and activate all objects. It should work fine.