2014 Apr 15 7:14 AM
Hello gurus,
I am having two screens 100 and 200 , and ther is a button in 100 which will lead to 200 and one column same in both the screens. When i do refresh on 100 the column is getting refreshed but when i click on button in 200 the column is not getting refresh. So i tried lo of methods, can you please suggest me best one , how to approach
Thanks
2014 Apr 15 7:36 AM
Hello ABAP Consultant,
Please write the code for refreshing SCREEN 200 in the PAI of the same screen. Check the function code of the refresh button, and in PAI of 200, you can write code for refreshing the screen.
Regards,
Dnyanesh.
2014 Apr 15 7:40 AM
Hello.
Can you be more clear?
If possible some screen shots?
Regards.
2014 Apr 15 7:50 AM
Actually my second screen is not showing refreshed data, the internal table is having the updated value but screen not showing the updated table
2014 Apr 15 7:46 AM
Hi,
Please check the refresh code is called when you click refresh in screen 200, if not copy and paste the same code fromm 100 to 200 and check.
Thanks,
Guru
2014 Apr 15 7:52 AM
Actually the problem is when i press refresh and go to 200 screen the refresh column which is showing in 100 is not showing in 200 , the internal table has the value but custom container in 200 is just showing the last container values
2014 Apr 15 8:05 AM
Please check your table and relavent work area are declared in TOP include, element list of both the screens.
2014 Apr 15 8:23 AM
You mentioned custom container. Is this an OOP ALV report? If it is, before creating the object for ALV Grid and Custom Container, check whether the object is initial. E.g.
IF v_alv IS INITIAL.
CREATE OBJECT v_alv
EXPORTING
container_name = 'CONTAINER'.
ENDIF.
IF v_grid IS INITIAL.
CREATE OBJECT v_grid
EXPORTING
i_parent = v_alv.
ENDIF.
IF v_grid IS BOUND.
CALL METHOD v_grid->set_table_for_first_display
EXPORTING
is_layout = w_layo
CHANGING
it_outtab = i_final
it_fieldcatalog = i_fcat .
ENDIF.
Regards,
Dnyanesh.
2014 Apr 15 8:28 AM
Thanks to all i solved it myself, actually when container not initial i am refreshing the table .