‎2013 Dec 06 1:55 PM
Hello,
I have created the enhancement implementation for the BADI.
My requirement is to delete the enhancement implementation and the implementing class through program.
i tired to delete the entry from BADIIMPL_ENH table but it still shows the implementation exist through SE19
Is there any function module or class interface available to accomplish this?
Thanks in advance,
Arati
‎2013 Dec 07 6:35 AM
Hi Arati,
Its quite simple,
Step 1-->Go to SE80 transaction, in the field marked in brown select the option local objects, and in the field marked in red give your user name, now you will be displayed with all the object that was created by you.
Step 2--> now keep expanding the enhancement option as shown below(marked in green), now select the enhancement that you want delete(marked in blue) right click on it and you will be having an option to delete, then you can delete it.
Please note in this case below i want to delete the implementation in a class so went on searching the implementation in the class. In your case please find the implementation that was done by you and right click and delete. Do not confuse
Hope this answer helps, Please let me know if you have any more questions.
Also please let me know if you have done it successfully
Thanks,
Satish
‎2013 Dec 09 6:18 AM
Hi Satish,
Thanks for your answer with detail steps
I know how to delete the enhancement implementation manually. i want to delete it though code at run time.
Let me explain the requirement again.
i have one report. and depending on some condition i want to delete the BADI.
foe . e.g
IF sy-subrc <> 0.
<DELETE IMPLEMENTATION>
ENDIF.
So is there any function module or class method exist to delete the implementation though code.
Thanks,
Arati.
‎2013 Dec 09 7:52 AM
Hi Arati,
Please try this FM SEO_CLASS_DELETE_COMPLETE. It may help.
Please get back if you have any issues.
Thanks,
Satish
‎2016 Sep 27 9:17 PM
‎2013 Dec 07 7:49 AM
‎2013 Dec 09 8:55 AM
Hi Nabheet,
Yes.. through SE19 implementation can be deleted but i want to delete it with the help of ABAP code.
IF sy-subrc <> 0.
<DELETE IMPLEMENTATION>
ENDIF.
So is there any function module or class method exist to delete the implementation though code.