2017 Sep 22 6:04 AM
hello all...
I need your help as I am stuck at a point in my requirement where I want entire row values on “enter” click instead of one by one cell values.
I have used
LOOP AT ER_DATA_CHANGED-> MT_GOOD_CELLS INTO X_CHANGE.
ENDLOOP.
But it’s very tedious for me to manipulate the data into the internal table.
Can any one help me either ways?
I mean if there is a method accordingly or how to manipulate the good cells data.
2017 Sep 22 7:39 AM
I guess you simply want the current cell, so you need to call the method GET_CURRENT_CELL (of CL_GUI_ALV_GRID).
2017 Sep 22 11:27 AM
I have more than 1 cells which are editable that's why i need the values of the whole row and not just the cell
2017 Sep 22 11:45 AM
During the event DATA_CHANGED, if you need to retrieve the unchanged fields in the same row, use the method GET_CELL_VALUE of the parameter ER_DATA_CHANGED, repeatedly for every column.
2017 Sep 25 5:28 AM
hi
register Standard events : MC_EVT_ENTER
MC_EVT_MODIFIED
using method : REGISTER_EDIT_EVENT of class CL_GUI_ALV_GRID
and next create one handler class for event DATA_CHANGED_FINISHED of class CL_GUI_ALV_GRID
and register that method to that event using set handler statement.
now u can modify and press enter on alv controller.
that event DATA_CHANGED_FINISHED handler method will be triggered.
using event DATA_CHANGED_FINISHED import parameters , u can reach ur requirement