Skip to Content

To get entire row values in ALV OO

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 22, 2017 at 06: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).

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 22, 2017 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 25, 2017 at 04: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

    Add comment
    10|10000 characters needed characters exceeded