2008 Apr 29 2:40 PM
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!
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!
2008 Apr 29 4:36 PM
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.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |