‎2007 Mar 19 11:59 PM
Hi everyone! I need to use event DATA_CHANGED on FM REUSE_ALV_HIERSEQ_LIST_DISPLAY. I used to do so on REUSE_ALV_GRID_DISPLAY passing parameter I_GRID_SETTINGS-EDT_CLL_CB = 'X', but this FM doesn't have it, so does anybody knows something like this but for hierarchical ALV??
I already added DATA_CHANGED event to the events table, but still wont activate.
thanx.
Jesus
‎2007 Mar 20 3:16 AM
Hello Jesus,
DATA_CHANGED Event is for OO ALV. I dont think this could be used directly with Hier ALV.
‎2007 Mar 20 4:51 AM
Hi,
The DATA_CHANGED_FINISH event is triggerd after a change is committed.This is in contrast to the event DATA_CHANGED where the method is triggered after the change at an editable field is perceived.
Your code should look like this:
data: hnd_grid type ref to lcl_event_receiver.
*:--- Initialization of the objects and events
set handler hnd_event_grid->mth_data_changed_end
for hnd_grid.
*:--- Class definition and Implementation
methods: mth_data_changed_end
for event data_changed of cl_gui_alv_grid
inporting e_modified.
method: mth_data_changed_end.
if e_modified = 'X'.
*:--- do something ...
call method <hnd_grid->refresh_table_display
endif.
endmethod.
one more ex:
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS HANDLE_DATA_CHANGED
FOR EVENT DATA_CHANGED OF CL_GUI_ALV_GRID
IMPORTING ER_DATA_CHANGED E_ONF4 E_UCOMM.
ENDCLASS. "cl_event_receiver DEFINITION
----
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION
*----
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_DATA_CHANGED.
PERFORM DATA_CHANGED USING ER_DATA_CHANGED E_ONF4 E_UCOMM.
end method.
endclass.
Mark all helpful answers
‎2007 Mar 20 1:54 PM
Hi Pradeep. You're right, but that event you are referring to is for OO ALV only, I need something like this but for hierarchical ALV, using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY.
Thanx
Jesus
‎2013 Jun 17 10:27 AM
Hi,
I am using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY also and I want to detect changes in edit cells to change a column of subtotals, is there any solution?
Thanks.