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

How to refresh controle tableview?

Former Member
0 Likes
584

Hello guys,

I'd like to ask you how to solve issue written below:

I have two screens: screen_1 and screen_2, the first screen contains controle tableview with some data in table table_1 initaliazed in PBO, the second screen has button which for instance change table_1 records.

How to refresh controle tableview if button is pressed?

Until now, tableview will refresh only if tableview's scrollbar is pressed. Instead of table_1 is changed, tableview cannot be refreshed.

many thanks for your help

Mateusz

Hello guys,

I'd like to ask you how to solve issue written below:

I have two screens: screen_1 and screen_2, the first screen contains controle tableview with some data in table table_1 initaliazed in PBO, the second screen has button which for instance change table_1 records.

How to refresh controle tableview if button is pressed?

Until now, tableview will refresh only if tableview's scrollbar is pressed. Instead of table_1 is changed, tableview cannot be refreshed.

many thanks for your help

Mateusz

1 REPLY 1
Read only

Former Member
0 Likes
473

Hi,

I think you have some records in table control table_1 and you need those same values with same fields as in Table_1 to table_2 with refreshed values.

If so, you can do as follow..

If you want to refresh by button click... You have to" refresh itab"(internal table/structure with in a loop if is table control).

then to update this changes you have to use following statement " Modify itab lines.....(mention above changes in button click. i.e. if you want to do when clicking table_2, have to do there).

Else if you want update the changes made in table_1 to be updated in table_2.. you can refresh those fields using "sy-dataR" for those corresponding fields. using that flag value and cursor position you can refresh those fields in table_2 if changes made in Table_1.

Regards,

Renuka.