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

Table control selection

Former Member
0 Likes
779

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
Read only

Former Member
0 Likes
751

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
Read only

Former Member
0 Likes
751

hai,

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

shan.

Read only

0 Likes
751

Hi

How to get the valus of the selected row.

Read only

Former Member
0 Likes
751

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

Read only

0 Likes
751

Hi Santhosh,

already given like this .

Its not working out.

Regards,

Anila

Read only

0 Likes
751

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

santhosh

Read only

Former Member
0 Likes
752

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