2014 Sep 15 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....
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....
2014 Sep 15 11:34 AM
2014 Sep 15 11:36 AM
Hi Vinay,
I think use of method REFRESH_TABLE_DISPLAY solves your problem.
Regards,
Chakradhar.
2014 Sep 15 11:37 AM
2014 Sep 15 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
2014 Sep 16 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....
2014 Sep 16 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..
2014 Sep 15 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
2014 Sep 16 10:39 AM
CALL METHOD go_custom_container->free.
CALL METHOD cl_gui_cfw=>flush. otherwise use
REFRESH_TABLE_DISPLAY