Entering content frame

Procedure documentation Creating Event Handler Methods Locate the document in its SAP Library structure

Use

Each class can define methods that are intended specially for handling events. The events to be handled can be triggered in the defining class or in external classes and interfaces.

Prerequisites

Procedure

  1. Place the cursor in the method display of the Class Editors on the required method.
  2. Make sure you are in Change mode.
  3. Click on the This graphic is explained in the accompanying text icon to go to the Detail View of the method.
  4. The Change Method <method name> dialog box appears.

  5. Select the Event handler for checkbox.
  6. Enter the class or interface and the event to be handled.
  7. Choose Change to save your entries.

You return to the method display; the method is marked with the This graphic is explained in the accompanying text icon as event handler method.

Result

You declared a method as event handler method. Instances of the defining class or the class itself can handle the event specified in step 5, which is triggered in some method.

See also:

Creating Events

 

 

Leaving content frame