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 get the wrong cursor when scrolling tableview

Former Member
0 Likes
708

Hi there ABAP ers

I've got a problem with tableview object. In the screen there are 7 rows visible, but You can scroll tableview object for further lines.

I use


    GET CURSOR LINE idx .
    DELETE itab INDEX idx .

when I set cursor in 1st line - everything is ok, first row of itab is deleted.

... but when I scroll tableview object downwards, then set cursor in 1st VISIBLE row in the screen (but it's not a 1st row of itab, in itab it has l 8th position) GET CURSOR loads '1' to idx, effect is that I'm losing 1st itab row, not 8th as I wanted

That functionality looks really poor Please tell me how to solve that problem?

Edited by: Piotr Wojciechowski on Jan 19, 2009 12:53 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
626

check TableViewName-top_line

top_line + cursor should give actual row number.

5 REPLIES 5
Read only

Former Member
0 Likes
626

I don't remember the exact syntax, but there is another parameter which tells seq. no of data in the first row & last row.

Read only

0 Likes
626

vivek amrute

could You express more precisely?

Do I get it properly? Do I NEED to develope that functionality of tableview? Is't it some built-in functionality?

Read only

Former Member
0 Likes
626

Hi,

When you press page down add 7 to the idx.

Regards,

Manoj Kumar P

Read only

0 Likes
626

Manoj Kumar

I'm not pressing buttons, I'm just using right tableview scrollbar.

Read only

Former Member
0 Likes
627

check TableViewName-top_line

top_line + cursor should give actual row number.