Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Table control selection

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

replied

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

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question