2019 Sep 03 6:12 AM
Hello.
Currently I'm building a code which makes changing ALV data(to be extended - base itab) without ENTER or clicking other line, so When I click the 'SAVE' button(for example), It uses the 'changed alv data', not 'original data, which are hidden by changed data'.
The problem is, I use data_changed event to other alv - so I have to divide each event, by SENDER objects.
When I do some reseach - data_changed objects doesn't support SENDER.
In short - How can I recognize which objects call data_changed event without SENDER?
2019 Sep 03 2:45 PM
What? The SENDER parameter is valid for any instance event, so it works for the event data_changed. Defining the method handler:
METHODS on_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING sender. " <==== indicate SENDER here
Hello.
Currently I'm building a code which makes changing ALV data(to be extended - base itab) without ENTER or clicking other line, so When I click the 'SAVE' button(for example), It uses the 'changed alv data', not 'original data, which are hidden by changed data'.
The problem is, I use data_changed event to other alv - so I have to divide each event, by SENDER objects.
When I do some reseach - data_changed objects doesn't support SENDER.
In short - How can I recognize which objects call data_changed event without SENDER?
2019 Sep 03 2:45 PM
What? The SENDER parameter is valid for any instance event, so it works for the event data_changed. Defining the method handler:
METHODS on_data_changed
FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING sender. " <==== indicate SENDER here
2019 Sep 04 12:38 AM
What? I didn't know it's valid for any instance. Thanks for notice.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |