‎2010 Feb 03 10:22 AM
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?
‎2010 Feb 03 10:51 AM
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
‎2010 Feb 03 10:51 AM
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