Get Example source ABAP code based on a different SAP table
• FOR EVENT OF CLASS-METHODS • sender CLASS-METHODS
CLASS-METHODS>, FOR EVENT> Short Reference >
ABAP_SYNTAX CLASS-METHODS meth $[DEFAULT IGNORE$|FAIL >$]> FOR EVENT evt OF ${class$|intf$}> $[IMPORTING p1 p2 ...$[sender$]$].>
What does it do? 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.
ABAP_EXAMPLE_VX5 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. ABEXA 00098 ABAP_EXAMPLE_END