Skip to Content
0
Former Member
Dec 14, 2011 at 04:50 AM

Get edited row number for ALV

644 Views

Hi Friends,

I have ALV with a editable column. I want to get row number where the user insert or change data of editable column of ALV.

I am displaying ALV using following code.

*Display final ALV with fix column

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

EXPORTING

i_callback_program = sy-repid

i_callback_pf_status_set = 'PF_STATUS'

i_callback_user_command = 'USER_COMMAND'

is_layout_lvc = wa_layout

it_fieldcat_lvc = t_fieldcat

i_save = 'A'

TABLES

t_outtab = t_final

EXCEPTIONS

program_error = 1

OTHERS = 2

.

Also I am geting chenaged data using following code.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'

IMPORTING

e_grid = ref_grid.

CALL METHOD ref_grid->check_changed_data.

Please help me to get row number for chage in ALV.

Thanks