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

GET CURSOR LINE - TABLE CONTROL

Former Member
0 Likes
1,287

Hi Gentlemen!! I'm trying to change data of a row of a table control.

The table control is inside a TabsTrip.

I used a table from the dictionary to build the columns.

I'm using:

Data: tabix type sy-tabix,

v_line TYPE sy-stepl.

GET CURSOR LINE v_line.

tabix = tcontrol2-top_line + v_line - 1.

( Inside the flow logic of a PAI module )

My problem is that the cursor doesn't return the number of cursor line.

May be is because the get cursos command must be in another module.

Thanks!

Polakinho!

1 REPLY 1
Read only

Former Member
0 Likes
383

Hi Hernan,

instead of get cursor you can read the current selected line of table control using this syntax..

READ TABLE itab INTO demo_conn INDEX flights-current_line.

here flights is the table control that you declared in your code

CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.