‎2011 Jan 20 8:30 AM
Dear All,
I am new to ALV GRID. While using REFRESH_TABLE_DISPLAY I am getting errors OK(539). Basically I want to delete the CHEQUE entries based on the criteria on selection-screen. There is F4 help for cheques . once I press enter, the details of the cheque will be shown on container on selection screen itself . The delete pushbutton is also there on selection-screen. The problem is that second time I am pressing F4 help and selecting different cheque , the details of first cheque is shown on the selection-screen not the selected one. I tried to use REFRESH_TABLE_DISPLAY but it is giving an abend(A) type message.
‎2011 Jan 20 1:26 PM
I managed the resolve the issue. I find out that cl_gui_alv_grid->mt_outtab was empty .when I was calling REFRESH_GRID_DISPLAY. I found out the place where mt_outtab was getting initial. Actually initially for both set_table_for_first_display and refresh_grid_display this code was common.
create object g_custom_container
exporting container_name = g_container.
create object g_grid
exporting i_parent = g_custom_container.
Due to this mt_outtab was getting refreshed.
So I gave the condition that if the grid has been displayed once no need to create grid container again and it worked.
Thank you for your support.
Regards,
Debopriyo