Hi,
I have a refresh option on my screen. It will bring latest data from database. After displaying data in ALV and scrolling down (lets assume scrolled down 10 records). if I select refresh, I am reloading data to ALV. But focus is going to first record. I have again scrool down to 11th record to check the data. How I can set focus to 11th record after repopulating data on ALV. I am using classes for ALV.
I will appriciate any inputs.
Regards,
Venkat.
Hi,
Check this example of using the method set_current_cell_via_id.
DATA: ROWNO TYPE LVC_S_ROID.
ROWNO-ROW_ID = 25.
Set the focus on the row number 25.
CALL METHOD <b>grid1->set_current_cell_via_id</b>
EXPORTING
IS_ROW_NO = rowno.
Hope this helps..
THanks,
Naren
Add a comment