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

table control cursor position

Former Member
0 Likes
473

i had a tabler control with say 50 rows.when i make last few rows editable ,

the cursor reaches the editable rows but i have to scroll the screen manually.

so i need a command that will scroll the table control to the editable row ,

and i dont have to scroll but to enter the data and save.

3 REPLIES 3
Read only

former_member209703
Active Contributor
0 Likes
443

Hi. There's one thing you can do.

If you know where the editable rows are, you can set the table control's fields TOP_LINE accordingly, so if the editable rows begin at line number five, what you can do is:


g_d_tc-top_line = 5.

This should position the cursor at line number 5. You just have to figure out, where in your coding you have to do this.

Best regards.

Read only

Former Member
0 Likes
443

Hi Avi,

Refer below:

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.

BR

Dep

Read only

Former Member
0 Likes
443

thankyou for all ur help, but my concern is to get rid of manual scrolling.and the editable rows should be on focus at monitor .