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

Cursor possition in table control

Former Member
0 Likes
687

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

Former Member
0 Likes
655

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.

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.

3 REPLIES 3
Read only

former_member386202
Active Contributor
0 Likes
655

Hi,

Use set cursor field.

Regards,

Prashant

Read only

Former Member
0 Likes
656

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.

Read only

Former Member
0 Likes
655

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