Event with Context Information
Use
If you want to provide the event with context information, you must define an interface. This interface must contain at least one method of any name that accepts the context information (in this example, the interface IF_BRF_EVENT_FLIGHT with the method SET_CONTEXT).
You can include the context information in the interface as a member variable (structure, table, object). The advantage of this is that the context can be (read) accessed without the need to explicitly specify a read method (MS_FLIGHT_CONTEXT).
The own event class (in this example, CL_EVENT_FLIGHT) is derived from the basis class CL_EVENT_BASE_BRF. In addition, it implements the previously defined interface (IF_BRF_EVENT_FLIGHT).
Sample source text:
METHOD if_brf_event_flight~set_context.
mv_flight_context = iv_flight_context.
ENDMETHOD.