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

Problem in GET CURSOR LINE when we scroll down on Table Control

Former Member
0 Likes
1,911

Hi,

I have taken some fields on Table Control for double click action...it is similar functionality as hotspot operation on ALV

To achieve this i am using GET CURSOR LINE statement....due to it i am able to read correct line from my internal table and further using itab values i can call subsequent transaction

But when we scroll down on table control then 'Get cursor' is returning me line no corresponds to visible lines of table control....as i see this line no is not related with Itab row index...m getting wrong results.

also i have tried using 'GET CURSOR VALUE' in PAI module but its not returning any value in my char variable

Anything i missed out regarding syntax?

1 ACCEPTED SOLUTION
Read only

Former Member
889

Hi Amol

Use the TOP_LINE field of your control field of your table control. And the simple maths to know the record in your internal table would be

Current_Line = <tbctrl>-TOP_LINE + <Get Cursor line> - 1.

Then read your internal table with the internal Current_Line.

Hope this helps.

Regards

Ranganath

1 REPLY 1
Read only

Former Member
890

Hi Amol

Use the TOP_LINE field of your control field of your table control. And the simple maths to know the record in your internal table would be

Current_Line = <tbctrl>-TOP_LINE + <Get Cursor line> - 1.

Then read your internal table with the internal Current_Line.

Hope this helps.

Regards

Ranganath