Summary

Use

In lesson 2, you learned how to catch and respond to events of a control. To do this, you must:

  • Register the event for the SAPGUI. To do this, you use method set_registered_events.

  • Determine if you want to register the event as a System Event or an Application Event.

  • Define an event handler method. To do this, you can define a local class in your program, for example.

  • Link the event to the event handler method. To do this, you use statement SET HANDLER.

  • Call static method cl_gui_cfw=>DISPATCH in the PAI module for application events.