Skip to Content

Redefine of Event Handler of WebUI

Hi experts,

I would like to redefine a "Event Handler" Method of component AIC_CMCR_H, View AIC_CRMCR_H/AICCMCROverview.

It is the method EH_ONEDIT, which I would like to modify.

At the beginning of this method there is the following coding:

htmlb_event = htmlb_event
htmlb_event_ex = htmlb_event_ex ).

My problem is, if I don't call this coding the screen is not going in edit-mode, which it should do. But when I call the coding, it goes again through the original coding and so I can't delete the coding which I want to delete, because it is also called in the original one.

So what is my mistake? How can I avoid to call the original coding and the system is also going into the EDIT-Mode.

Thx in advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Sep 04, 2013 at 02:40 PM

    Does noone have a solution on this?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2013 at 08:08 AM

    Hi Cristian,

    If you want to redefine the method and u dont want to run the standard code then you don't call the super method, so then standard code will not be executed and then write your custom code which suits your specific requirement.

    Here if your requirement is to get into edit mode when the user clicks on EDIT then no need to redefine the method also, the standard code will run and then view will be displayed in edit mode.

    We actually redefine a method either to add some more code( functionality ) to the existing code ( functionality ) or to override the existing functionality.

    It depends on requirement whether to call super when we redefine a method but it's not mandatory.

    Thanks & Regrads,


    Add a comment
    10|10000 characters needed characters exceeded

    • Thank you for your help.

      But I don't know, why it is not going into EDIT-Mode or which coding I Need to implement, that it goes into edi-mode.

      I copied the original coding into my re-definition.

      And then I did delete the coding (something which gives an popup) which I don't Need.

      However, when I call my Definition, the sysetm is not going into edit-mode.

      only when I implement the "super->eh_onedit...".

      But then it is also going through the original-coding, what I don't want.

      So I doN't know what is my error???

  • Posted on Sep 04, 2013 at 08:40 AM


    You will have to include the code


    htmlb_event = htmlb_event

    htmlb_event_ex = htmlb_event_ex ).

    Without this the document will not change to EDIT mode. If your requirement is to perform certain validations, and based on the outcome of these validations, the document should conditionally move to EDIT move, then you must write the above after the validations are performed, and call the method(super->eh_onedit) only if the validations Suceed.

    If you want some additional functionality, you must write it after the method call.

    If you want, that some of the standard codes are not executed, you will have to somehow undo the changes done by standard codes, through your own codes written after the method call.

    We may help you better if you could explain the change requirements in brief.


    Chetan Mishra

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.