Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use DATA_CHANGED_FINISHED event in the cl_gui_alv_grid

1190_5939_439
Active Participant
0 Kudos

Hi Experts

Now I use DATA_CHANGED event. But I will use DATA_CHANGED_FINISHED . Maybe I can save data in the database table. How to use the event ? Can you help me ? Thanks.

The code is following:

class lcl_event_receiver definition.

 public section.
    methods:
      handle_data_changed
         for event DATA_CHANGED of cl_gui_alv_grid
             importing er_data_changed.

 private section.

* This flag is set if any error occured in one of the
* following methods:
    data: error_in_data type c.

* Methods to modularize event handler method HANDLE_DATA_CHANGED:
    methods: check_planetype
     importing
        ps_good_planetype type lvc_s_modi
        pr_data_changed type ref to cl_alv_changed_data_protocol.

    methods: ch_new_plane_v_new_seatsocc
           importing
              psg_plane type lvc_s_modi
              psg_socc type lvc_s_modi
              ps_saplane type saplane
              pr_data_changed type ref to cl_alv_changed_data_protocol.

    methods: ch_new_plane_v_old_seatsocc
           importing
              psg_plane type lvc_s_modi
              ps_saplane type saplane
              pr_data_changed type ref to cl_alv_changed_data_protocol.

    methods: check_seatsocc
           importing
              ps_good type lvc_s_modi
              pr_data_changed type ref to cl_alv_changed_data_protocol.
endclass.
1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

How to use the event, to do what?

Why do you want to use DATA_CHANGED_FINISHED that you can't do with DATA_CHANGED?