08-27-2009 5:20 AM
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
08-27-2009 6:12 AM
Hi,
Try using the following method.
CALL METHOD grid1->refresh_table_display.
08-27-2009 6:12 AM
Hi,
Try using the following method.
CALL METHOD grid1->refresh_table_display.
08-27-2009 7:07 AM
DATA: g_grid_manifest TYPE REF TO cl_gui_alv_grid,
CALL METHOD g_grid_manifest->refresh_table_display.
08-27-2009 7:17 AM
DATA: g_grid_manifest TYPE REF TO cl_gui_alv_grid,
CALL METHOD g_grid_manifest->refresh_table_display.
08-27-2009 9:18 AM
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.
08-28-2009 4:59 AM
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.
08-28-2009 4:59 AM
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.
08-27-2009 11:10 AM