Ansicht
Dokumentation
ABAPSET_HANDLER_STATIC - SET HANDLER STATIC
CL_GUI_FRONTEND_SERVICES - Frontend Services RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
SET HANDLER, static_event
SET HANDLER handler1 handler2 ... $[ACTIVATION act$].
Addition:
Effect
This statement registers the event handlers handler1 handler2 ... for the associated static events. The addition ACTIVATION can be used to deregister event handlers or to perform a dynamic registration.
An event handler is executed if the associated static event is raised 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.
Events that can be handled by an event handler for static events are defined uniquely by their definition
in the statement $[CLASS-$]
METHODS. During registration, the addition FOR, which is required to register or deregister
instance event handlers that determine the raising instances, cannot be specified. An event handler for static events is registered or deregistered independently of the instance and this applies globally to the current
internal session.
Addition
... ACTIVATION act
Effect
The syntax and semantics of the addition ACTIVATION are the same as for the statement SET HANDLER for instance events.
Note
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. This is because it is still used by the runtime framework.
Example
Registration of a static handler for a static event. After the event has been raised, the handling takes place.
ROGBILLS - Synchronize billing plans Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 2960 Date: 20240329 Time: 104734 sap01-206 ( 62 ms )