2011 Mar 09 1:36 PM
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
2011 Mar 10 5:01 AM
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.