09-26-2008 11:48 AM
Hi,
I have used GET CURSOR LINE V_LINE for getting the selected line number of my
table control.To get values used
READ ITAB INDEX tablecontrolname_currentline.
My table control visible length is 14.I have fisrst column as IDENTIFIER
in my table control.say it has "10 to 40 " values.so for first 14 rows in the table
control no problem.(for IDENTIFIER 10 TO 24).
Upto 14 rows its retrieving IDENTIFIER correctly.
when i scroll the page it will display new set of values.Say it have 12 to 26 now.
When i select the row having IDENTIFIER 36 the line number is 14.So Get cursor line
is taking it as 13.
But while reading the table its reading the row its giving the values of the
IDENTIFIER 24 which is the 14th row value in the table control.How to solve this problem??
Regards,
Anila
09-26-2008 1:22 PM
use thid code
GET CURSOR LINE V_LINE
IF TC-TOP_LINE > 1.
V_LINE = V_LINE + ( TC-TOP_LINE - 1 ).
ENDIF.
it will give perfect v_line.
Regards,
Alpesh
09-26-2008 11:58 AM
hai,
what is the need to get the current cursor position details..
shan.
09-26-2008 11:59 AM
09-26-2008 12:04 PM
Hi,
Before calling the table control in the screen using
Loop At ITAB..
EndLoop.
Describe table ITAB Lines LINES.
TC_502-LINES = LINES.
Should solve your problem
Santhosh
09-26-2008 12:24 PM
Hi Santhosh,
already given like this .
Its not working out.
Regards,
Anila
09-26-2008 12:33 PM
09-26-2008 1:22 PM
use thid code
GET CURSOR LINE V_LINE
IF TC-TOP_LINE > 1.
V_LINE = V_LINE + ( TC-TOP_LINE - 1 ).
ENDIF.
it will give perfect v_line.
Regards,
Alpesh