OOPS ABAP: EVENTS with Example
Events: Method of one class can call the method of another class. Triggering Method: This method raises the event. Event Handler Method: The method will handle the event. Register the event handler method using SET HANDLER statement. CLASS class1. METHOD DISPLAY ENDCLASS. --------------------------------------- CLASS CLASS2. METHOD MESSAGE. ENDCLASS. Syntax for event handler: SET HANDLER lo_object1 -> event_handler for lo_object2. where lo_object1 -> class object in which event handler method is defined. EVENT_HANDLER -> Event handler method name. lo_object2 -> class object in which triggering method is defined. Example *&---------------------------------------------------------------------* *& Report ZVB_EVENTS *&--------------------------------------------...