cancel
Showing results for 
Search instead for 
Did you mean: 

I want it to remain on the line you are working on after the Alv refresh process.

TurgutG
Explorer

When we mark a checkbox on a line in Abap Alv, I want to stay on the line you are working on after the Alv refresh process.

TurgutG_0-1715243977208.png

I don't want it to show the top line after alv refresh.

TurgutG_1-1715244018491.png

 

Sandra_Rossi
Active Contributor
0 Kudos

Do the refresh with stable positioning. I can't say more because you didn't post your code and you don't explain which ALV technology you use.

Sandra_Rossi
Active Contributor
View Entire Topic
TurgutG
Explorer
0 Kudos

I tried as follows but it didn't work.

DATAes_row_no   TYPE lvc_s_roid,
          es_row_info TYPE lvc_s_row,
          es_col_info TYPE lvc_s_col.

 CALL METHOD go_grid2->get_scroll_info_via_id(
          IMPORTING
            es_row_no   es_row_no
            es_row_info es_row_info
            es_col_info es_col_info
            ).

CALL METHOD go_grid2->set_scroll_info_via_id(
    is_row_info = es_row_info
    is_col_info = es_col_info
    is_row_no   = es_row_no
    ).