Ansicht
Dokumentation

ABAPCLASS-METHODS_EVENT_HANDLER - CLASS-METHODS EVENT HANDLER

ABAPCLASS-METHODS_EVENT_HANDLER - CLASS-METHODS EVENT HANDLER

ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

CLASS-METHODS, FOR EVENT

Short Reference



CLASS-METHODS meth $[DEFAULT IGNORE$|FAIL$]
   FOR EVENT evt OF ${class$|intf$}
   $[IMPORTING p1 p2 ...$[sender$]$].

Effect

This statement declares the static method meth as the event handler for the event evt of the class class or the interface intf. The syntax and meaning of the additions are identical to the declaration of instance methods as event handlers.

Static event handlers can be called by the event evt independently of an instance of the class.

Example

The class dialog_box defines a static event handler close_box for the event that is raised when the user wants to close a Control Frameworks (CFW) dialog box.








Fill RESBD Structure from EBP Component Structure   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 1552 Date: 20240616 Time: 120040     sap01-206 ( 52 ms )