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: 

Cursor possition in table control

former_member585865
Contributor
0 Kudos

Hi all,

Is there any way to get cursor position in table control.Suppose if am in fourth or fifth column in table control when i presses enter from there it should add all the data's in the particular column then i will have textbox outside the table control so that i can display the results in that textbox.if any other easier way than this kindly suggest me.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Table Controls in ABAP Programs

Cursor Position on Table Controls

At PBO you can set the cursor on a specific field of a specific row of a table control.

SET CURSOR FIELD .

if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

3 REPLIES 3

former_member386202
Active Contributor
0 Kudos

Hi,

Use set cursor field.

Regards,

Prashant

Former Member
0 Kudos

Table Controls in ABAP Programs

Cursor Position on Table Controls

At PBO you can set the cursor on a specific field of a specific row of a table control.

SET CURSOR FIELD .

if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.

Former Member
0 Kudos

hi

try this

GET CURSOR LINE SY-STEPL.

READ TABLE ITAB INDEX SY-STEPL.

thn do the assignment where everu want to show the data

txtbox = itab-empname

txtbox1 = itab-empno

.........

rgds,

Sunny