‎2007 May 04 6:45 AM
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?
‎2007 May 04 9:04 AM
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
‎2007 May 04 9:04 AM
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
‎2007 May 07 11:14 AM
Hi,
u have to mention it as solved if ur question is solved. Dont forget.
Regards,
Sudheer
‎2007 May 07 11:21 AM
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.