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

Get cursor line keeps changing when scrolling

Former Member
0 Likes
805

Hi All,

My requirement is , When a user selects a particular line in the table control and clicks delete button. That record should get deleted. So. I've used Get cursor line and take the line number and using Read statement get the Itab index = Cursor line and then delete the data.

It was working fine but when user scrolls and then selects the line then the cursor line keeps changing and the Internal table index is not equal to cursor line.

I need to get the exact line in the internal table the user selected to delete the correct record.

Any help is appreciated.

Regards,

Satish

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
698

I think you're using the wrong approach; instead of checking the cursor, which will change as the screen changes, you should be looking at the field in the internal table that holds the 'marked for selection' value.

Rob

2 REPLIES 2
Read only

Former Member
0 Likes
699

I think you're using the wrong approach; instead of checking the cursor, which will change as the screen changes, you should be looking at the field in the internal table that holds the 'marked for selection' value.

Rob

Read only

Former Member
0 Likes
698

Thanks for the input..Issue closed.