Event handler method in ABAP Objects

Go down

Event handler method in ABAP Objects

Post  Uma_ABAP on Sun Apr 01, 2012 12:46 pm


These are like normal methods, the functionality of these methods are more specific i.e.
these methods are only executed when the event associated with these methods are
triggered. Basically these methods carry out the functionality of the events.

Note an event can have multiple event handler method associate with it, and it may be such that the handler method may be in some other class, but irrespective of that all the handler methods are executed when that particular event is raised. The link between the triggering event and the associated method is established at run time.

Code:

CLASS event_handler DEFINITION.
PUBLIC SECTION.
METHODS: event_method FOR EVENT test_event OF CLASS test.
ENDCLASS.

Uma_ABAP

Posts : 56
Join date : 2012-03-31

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum