What does it do? This statement registers the
event handlers handler1 handler2
... for the associated static events .
The addition ACTIVATION can be used to deregister event handlers
or perform a dynamic registration.
An event handler is executed if the associated static event is
triggered using RAISE EVENT . The list
handler1 handler2 ... has the same form as for
instance events , but can only contain
event handlers for static events declared using
CLASS EVENTS .
The event that can be handled by an event handler for static events is
already defined uniquely by its definition using the statement
[CLASS-]
METHODS . The addition FOR
(required when registering or deregistering instance event handlers
to determine the triggering instances) cannot be specified. The
registration or deregistration of an event handler for static events is
independent of the instance and is applies globally to the current
internal session.
ABAP_ADDITION ... ACTIVATION act
What does it do? The same applies to the syntax and semantics of the
addition ACTIVATION as to the statement
SETHANDLER for instance events.
Latest notes: As long as the registration of an instance method as an
event handler for a static event is not canceled using ACTIVATION "
" , the associated object cannot be deleted by the
garbage collector , since it
is still used by the runtime environment.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved