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: 

To get entire row values in ALV OO

Former Member
0 Kudos
369

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.

4 REPLIES 4

Sandra_Rossi
Active Contributor
0 Kudos
56

I guess you simply want the current cell, so you need to call the method GET_CURRENT_CELL (of CL_GUI_ALV_GRID).

0 Kudos
56

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

Sandra_Rossi
Active Contributor
0 Kudos
56

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.

former_member241258
Active Participant
0 Kudos
56

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