cancel
Showing results for 
Search instead for 
Did you mean: 

How event can be deleted in controller class

Former Member
0 Kudos

Hi all,

  I have created event for one button , Now i want to delete that event method, so kindly let me know how can i delete the event and

  how can i delete enhanced component

Would be helpful for me ..

Thanks & Regards,

N.Sasidhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sasidhar,

   let me very clear about deleting the enhancement you have already created, once you have created a enhancement for  a component, don't ever try to delete by clicking the "Delete Enhancement" Button,

there is a procedure for deleting the enhancement.

first let me clear your first requirement, to delete the event you have created option 1) Right click on the event by going to the Event Handler and choose Delete Redefinition.

2) go to _IMPL class ,under the methods tab you can see your event name starting with "EH_" select that and click on "Define/Redefine" Button at top right.

2nd issue, to delete the enhancement created for an standard component, first after opening your component through BSP_WD_CMPWB TCode, in menu Environment-->Enhancement Definition , select the enhancement set used, double click on "Enhancement Definition "(left side) . once it is done go to SE09, select your user name and click display, double click on the sub-request no. you used to create the enhancement, and delete all the Z classes created for that particular component, save. go back and open the component, the Enhancement will be deleted.

Thank You & Regards

Rohan

Former Member
0 Kudos

Hi Rohan,

Thanks for giving reply,

when i double click on enhancement definition, shall i go to se09 manually or will control go automatically to se09.

If we go to se09 then how would i know the particular sub request no of enhancement??

Thanks & Regards,

N.sasidhar

Former Member
0 Kudos

Hi Sasidhar,

       When you click on enhancement definition, it will show you a set of enhancement Set used , just select your enhancement set , and in left side double click on Enhancement Definition.

      There you can see the component you have enhanced, select it delete it.

now you have to go to SE09 manually, again you have to make note of the transport request you used for enhancing a component.  when you go to SE09 you can see request no. and sub-request no.

   select the sub-request no. (it is same as the one you used to create the enhancements) , after selecting it click on display button. you can see all the classes which are created in customer namespace(Z/Y)....select all those which are pertained to your component and delete it.

Regards

Rohan

Former Member
0 Kudos

Hi Sasidhar,

       When you click on enhancement definition, it will show you a set of enhancement Set used , just select your enhancement set , and in left side double click on Enhancement Definition.

      There you can see the component you have enhanced, select it delete it.

now you have to go to SE09 manually, again you have to make note of the transport request you used for enhancing a component.  when you go to SE09 you can see request no. and sub-request no.

   select the sub-request no. (it is same as the one you used to create the enhancements) , after selecting it click on display button. you can see all the classes which are created in customer namespace(Z/Y)....select all those which are pertained to your component and delete it.

Regards

Rohan

Former Member
0 Kudos

Hi sasidhar,

if you want delete the enhanced component goto sm34 give  View Cluster 'BSPWDVC_CMP_EXT'. and it will show enhanced component list then select your component click on delete  and save goto  component work bench then check your component enhancement is removed.

any clarification please let me know.

regards,

vishwa


Former Member
0 Kudos

Thanks viswa

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sasidhar,

  Go to Super class of your _IMPL of view ,there you will find the method which is created for event say, EH_ONCANCEL. Delete the method and also remove code shown below from DO_HANDLE_EVENT.

WHEN 'CANCEL'.                                       
         EH_ONCANCEL( htmlb_event    = htmlb_event
                     htmlb_event_ex = htmlb_event_ex ).

Regards

Rajarama U