‎2009 Jun 12 12:39 PM
Hi ,
Hi i have a alv which contains 10 rows and a delete icon on tool bar
if i select 10 th row and delete it then the coursor goes to 1st row
if i select 5 th row and delete it then the cursor goes to 6th row .....which variable is controlling cursor
my requirement is which ever row i delete my cursor should go to 1st row ,
please let me know how to do this
‎2009 Jun 12 12:59 PM
Hi,
There are two methods:
GET_FIRST_VISIBLE_ROW
SET_FIRST_VISIBLE_ROW
but both are proteced so you can't directly use them.
If you are refreshing a display with method refresh_table_display after deleting the entry, the you can do the following.
- get seleted rows with method GET_SELECTED_ROWS
- fill parameter IS_STABLE of method refresh_table_display with first selected rows returned by previous method
- refresh display using parameter IS_STABLE
This way you can controll "alv cursor"
Regards
Marcin