ARTICLE
ABAP Objects, Events
The example demonstrates triggering and handling events.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The user actions on a classic list trigger events in ABAP objects. The
list and its data are implemented in the class c_list . There is a
class status for processing user actions. It triggers an event
button_clicked in the AT USER-COMMAND event. The event is
handled in the class c_list . The class c_list contains an
object of the class c_ship or c_truck for each line of the
list. Both of these classes implement the interface i_vehicle .
Whenever the speed of one of these objects changes, the event
speed_change is triggered. The class c_list reacts to this and
updates the list.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved