Skip to Content
0

To get entire row values in ALV OO

Sep 22, 2017 at 05:04 AM

73

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi Sep 22, 2017 at 06:39 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0
Sandra Rossi Sep 22, 2017 at 10:45 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Krishna Murthy Sep 25, 2017 at 04:28 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded