Application Development and Automation 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: 
Read only

ALV DATA_CHANGED

Former Member
0 Likes
838

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

4 REPLIES 4
Read only

Former Member
0 Likes
717

Hello Jesus,

DATA_CHANGED Event is for OO ALV. I dont think this could be used directly with Hier ALV.

Read only

Former Member
0 Likes
717

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

Read only

0 Likes
717

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

Read only

0 Likes
717

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.