May 2019
Beginner to intermediate
548 pages
12h 39m
English
To create an event, we need to declare a method of handling events. The method in the example presented in the following code block is declared as a local class but can be declared as a global class too (more about the global and local class, can be found in Chapter 13, Advanced Techniques in ABAP Objects).
The button we want to create in this example will provide a popup with Mastering ABAP as text.
To create class, we first need to create a definition and implementation of a method to handle the button click:
CLASS lcl_event_handler DEFINITION. PUBLIC SECTION. METHODS: handle_button_click FOR EVENT button_click OF cl_gui_alv_grid IMPORTING es_col_id es_row_no. ENDCLASS. CLASS lcl_event_handler ...
Read now
Unlock full access