Application Development 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: 

Table control selection

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

hai,

what is the need to get the current cursor position details..

shan.

0 Kudos

Hi

How to get the valus of the selected row.

Former Member
0 Kudos

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

0 Kudos

Hi Santhosh,

already given like this .

Its not working out.

Regards,

Anila

0 Kudos

Can you paste the code what you are trying to do?

santhosh

Former Member
0 Kudos

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