Application Development 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: 

OO-ALV Refreshing the Screen..

former_member307726
Participant
0 Kudos

Hi,

Can any one solve my issue?

I have displayed EKKO table data using CL_GUI_ALV_GRID=>SET_TABLE_FOR_FIRST_DISPLAY in the screen 100. I have arranged one push button in the tool bar say u2018DETAILu2019.

Once clicked u2018DETAILu2019 I called one more screen 200 and displayed my Ztable data using the same CL_GUI_ALV_GRID=>SET_TABLE_FOR_FIRST_DISPLAY. Here I can add and modify entries in Ztable.

My problem is at first when clicked u2018DETAILu2019 screen 200 is coming with proper data(Say 2 entries). After that I add 2 entries in Ztable, and closee the screen. When again I click u2018DETAILu2019 the new data is not coming. Only 2 entries are coming.

During debugging it showing proper data (4 entries), but it is displaying old data (2 entries).

I think Screen is not refreshing.

Can any one give the clear idea to solve this.

Thanks in advance.

Regards,

Kumar.

Edited by: ABAP on Aug 27, 2009 6:23 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try using the following method.



      CALL METHOD grid1->refresh_table_display.

7 REPLIES 7

Former Member
0 Kudos

Hi,

Try using the following method.



      CALL METHOD grid1->refresh_table_display.

former_member842213
Participant
0 Kudos

DATA: g_grid_manifest TYPE REF TO cl_gui_alv_grid,

CALL METHOD g_grid_manifest->refresh_table_display.

former_member842213
Participant
0 Kudos

DATA: g_grid_manifest TYPE REF TO cl_gui_alv_grid,

CALL METHOD g_grid_manifest->refresh_table_display.

former_member218674
Contributor
0 Kudos

Hello,

Problem is that you are saving the newly entered two entries to internal table. This you need to handle in PAI even once you close the second screen.

So, This is what you can try:

1. Open second screen.

2. Enter data

3. In PAI ofsecond screen write code to copy data from second screen alv to internal table.

4. Call refresh table display method to refresh alv from first screen.

Hope this helps!

Thanks,

Augustin.

0 Kudos

HI..

Thank you for your answers.

I used REFRESH_TABLE_DISPLAY method, but still sceen is not refreshing.

Please try to give any other idea.

Thanks,

Kumar.

0 Kudos

HI..

Thank you for your answers.

I used REFRESH_TABLE_DISPLAY method, but still sceen is not refreshing.

Please try to give any other idea.

Thanks,

Kumar.

Former Member
0 Kudos

Hi..

Try this...

CALL METHOD GRID->CHECK_CHANGED_DATA.