Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_gui_alv_grid cursor problems

Former Member
0 Likes
262

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

1 REPLY 1
Read only

MarcinPciak
Active Contributor
0 Likes
223

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