Question:
Hi all ABAP gurus out there,
I've created a BADI definition via SE18, then the system created a corresponding Class & Implementation.
But when I deleted the BADI definition, the system only deleted the definition, but not the underlying Class & Implementation.
I managed to delete the underlying Implementation via SE24.
But I dunno how to delete the underlying class.
The system just gave me a message = " Exit classes/interfaces can only be edited using the BADI Builder" when I tried to delete the underlying class via SE24.
Questions =
1). is there a way to delete custom-created BADI definition completely including the underlying class & implementation ?
2). if the answer to question no.1 above is none, then why does sap provide the functionality to create your own BADI definition and even misleadingly provide the delete button on SE18, when it won't do the deletion job properly ?
Answer:
Hi
I think when you try deleting the BADI the system popups a dialog asking whether you want to delete the related objects.
Do you want to keep this class? ZCL_XXXX
If you select the proper options it will allow to delete everything.
Hope this helps.
Cheers
VJ
_________________
Dare to Share
Answer:
Hi, try using FM SEO_CLASS_DELETE_COMPLETE:
Enter the name of your copied class to parameter CLSKEY-CLSNAME.