09-15-2014 11:13 AM
helo all,
i am displaying my ALV output in Custom container...
i have an application tool bar button "REFRESH" when i click this i need to make the custom container empty(i.e no data should be displayed)..
which method do i need to use.....
thanks in advance....
09-15-2014 11:34 AM
09-15-2014 11:36 AM
Hi Vinay,
I think use of method REFRESH_TABLE_DISPLAY solves your problem.
Regards,
Chakradhar.
09-15-2014 11:37 AM
09-15-2014 11:40 AM
o_alv->free( ). "ALV inside container
o_container->free( ).
EDIT: or better just hide content of container, free method is destructor...
o_alv->set_visible "for cl_gui_alv_grid
09-16-2014 7:48 AM
hi tomas,
o_alv->set_visible "for cl_gui_alv_grid
is working fine by hiding the whole container.....
o_alv->free( ). "ALV inside container
o_container->free( ).
is giving shortdump when i execute the report for second time....
09-16-2014 9:24 AM
Yeah, there might be problem using destructor (free method). It depends on where you use constructor for objects, whether you clear reference variables (o_alv..) etc..
09-15-2014 11:48 AM
Hi Vinay
*Destructor
CALL METHOD go_custom_container->free.
*Send Buffered Automation Queue to Frontend
CALL METHOD cl_gui_cfw=>flush.
Regards
Arun VS
09-16-2014 10:39 AM
CALL METHOD go_custom_container->free.
CALL METHOD cl_gui_cfw=>flush. otherwise use
REFRESH_TABLE_DISPLAY