Skip to Content
4
Jul 31, 2020 at 08:54 AM

In ADT is there a QuickFix to create event handlers (ABAP OO)

178 Views Last edit Jul 31, 2020 at 09:39 AM 2 rev

Hi,

Every time I have to define a event handler, I do it completely manually, by typing the following lines, without assistance from Eclipse ADT to propose the available events of the object type I choose:

METHODS on_event FOR EVENT eventname OF objecttype IMPORTING ...

somewhere else, I enter:

SET HANDLER on_event FOR object.

Hopefully, there is one QuickFix to propose the possible parameters of the event, and another one to create the empty method implementation.

But I find it quite cumbersome to have to go to the object type, list its events, copy/paste them, then type the text around.

Do you know any QuickFix or tip to accelerate the typing of the event handlers?

Thank you.

Sandra

NB: the context how I use it is that I defined a dynpro application with view classes (MVC) with one event per user action, and the controller class handles each event.