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 enhancement implementation and class through program.

Former Member
0 Likes
5,197

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

6 REPLIES 6
Read only

former_member1716
Active Contributor
0 Likes
2,568

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

Read only

0 Likes
2,568

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.

Read only

0 Likes
2,568

Hi Arati,

Please try this FM SEO_CLASS_DELETE_COMPLETE. It may help.

Please get back if you have any issues.

Thanks,

Satish

Read only

0 Likes
2,568

In my case, this function solved my problem, thank you.

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,568

Can you do it in SE19 ??

Read only

0 Likes
2,568

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.