Welcome to SAP Central
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Setting the handler for the event in ABAP Objects (registering the event)

Go down

Setting the handler for the event in ABAP Objects (registering the event) Empty Setting the handler for the event in ABAP Objects (registering the event)

Post  Uma_ABAP Sun Apr 01, 2012 12:47 pm


To execute the event handler method, automatically when the event is raised the handler method has to be registered, the registration process is dynamic i.e the link is established at runtime. The key statement “set handler” can register the handler method.

The following piece of code will show how the handler method can be registered.
********** Main program*********************
Start-of-selection.
Data: my_object type ref to test.
Create object: my_object .
SET HANDLER my_object->event_method FOR test. “ setting the handler

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