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

Refresh Problem in two screens

Former Member
0 Likes
1,168

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

8 REPLIES 8
Read only

former_member228804
Participant
0 Likes
1,129

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.

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
1,129

Hello.

     Can you be more clear?

     If possible some screen shots?

Regards.

Read only

0 Likes
1,129

Actually my second screen is not showing refreshed data, the internal table is having the updated value but screen not showing the updated table

Read only

Former Member
0 Likes
1,129

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

Read only

0 Likes
1,129

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

Read only

0 Likes
1,129


Please check your table and relavent work area are declared in TOP include, element list of both the screens.

Read only

0 Likes
1,129

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.

Read only

Former Member
0 Likes
1,129

Thanks to all i solved it myself, actually when container not initial i am refreshing the table .