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 in Table Control

Former Member
0 Likes
572

Hi SDN,

I am using three I/O fields and three table control on a screen.if i scroll the table controls vertically , the screen goes to the top and set the cursor at the first I/O field. i want to capture which table control has been scrolled ?how to capture the field?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
551

Hi,

<u>To Know whether a table control has been scrolled</u>

1) Use the variable 'Top_line' of the table control.

If u have declared the tablecontrol as below

controls flights type tableview using screen 100.

then u can use by 'flights-Top_line'.

2) If the value of the flights-Top_line is changed, then it means that particular tablecontrol was scrolled.

3) Simply maintain three variables for Top_line value of three tabControls , at the end of PBO save the top_line value, At the start of the PAI Check those values if a value was changed then it mean that particular tabcontrl was scroled.

4)There are some cases where we will change that variable manually(I Mean by coding)

U can find those particular cases in the below program.

'demo_dynpro_tabcont_loop'

Hope this is useful

<u><b>Reward if useful</b></u>

Regards,

Sudheer

3 REPLIES 3
Read only

Former Member
0 Likes
552

Hi,

<u>To Know whether a table control has been scrolled</u>

1) Use the variable 'Top_line' of the table control.

If u have declared the tablecontrol as below

controls flights type tableview using screen 100.

then u can use by 'flights-Top_line'.

2) If the value of the flights-Top_line is changed, then it means that particular tablecontrol was scrolled.

3) Simply maintain three variables for Top_line value of three tabControls , at the end of PBO save the top_line value, At the start of the PAI Check those values if a value was changed then it mean that particular tabcontrl was scroled.

4)There are some cases where we will change that variable manually(I Mean by coding)

U can find those particular cases in the below program.

'demo_dynpro_tabcont_loop'

Hope this is useful

<u><b>Reward if useful</b></u>

Regards,

Sudheer

Read only

0 Likes
551

Hi,

u have to mention it as solved if ur question is solved. Dont forget.

Regards,

Sudheer

Read only

former_member491305
Active Contributor
0 Likes
551

Hi krish,

To find out in which table control the cursor is there .

Use the following stmt.

DATA:tc_name TYPE string.

GET CURSOR AREA tc_name.