cancel
Showing results for 
Search instead for 
Did you mean: 

Event Handler Examplee

Former Member
0 Kudos

Hi Everyone,

                 Am new to SAP CRM can anyone explain clearly about EventHandler in CRM with an  example so that it will be clear to me .

Regards,

G.Aditya

Accepted Solutions (0)

Answers (2)

Answers (2)

venkata_bharath
Participant
0 Kudos

Hi Aditya,

Refer the below link for GUI Event handlers.

http://www.sapgeek.net/2009/10/sap-crm-event-handler/

Thanks & Regards

Venkat

venkata_bharath
Participant
0 Kudos

Hi Aditya,

Event handlers are required to be able to react to user actions on the Web UI.

For example, if a user clicks a button on the web UI, this triggers an event that can be processed accordingly by an event handler method.

Event handlers are implemented as methods of the view controller.

Within the view controller , DO_HANDLE_EVENT method in the view controller   distributes the  events to the generated event handler methods of the view.

To create an event handler, you must select the Event handler level in the view controller of the component workbench and start the create option for the context menu.

In this Dialog that appears, you need to define the name of the event and confirm it.

When the event handler is being created, it receives the name of the event that is entered in the wizard, including the EH_ON prefix.

The event name is case sensitive.

Thanks & Regards

Venkat

Former Member
0 Kudos

Hi Bharath,

                I know about WebUI Event handlers I want to know about GUI Event Handlers.

praveen_kumar194
Active Contributor
0 Kudos

hi

in GUI through function codes , parts of the code will be executed. its like we assign one code to button and when we click on the button we will get function code and based on that code, corresponding logic will be executed.  kindly look for the screen programming in the following link.

http://help.sap.com/erp2005_ehp_04/helpdata/EN/56/1eb6c705ad11d2952f0000e8353423/frameset.htm

hope it helps.

Former Member
0 Kudos

Hi Adi,

Refer this link for a short Description  for the GUI Event Handlers.

http://blog.acorel.nl/2011/08/adding-functions-to-events-using.html.

Thank You & Regards.

Ron