Hi Dhinesh,
You can try hiding the table in hook method WDDOMODIFYVIEW. This is the only place where you can modify the view elements before they are actually rendered. The code could be something similar to this -
method wddomodifyview .
DATA lo_container TYPE REF TO cl_wd_uielement_container.
DATA lt_children TYPE cl_wd_uielement=>tt_uielement.
FIELD-SYMBOLS: <fs_element> TYPE REF TO cl_wd_uielement.
lo_container ?= view->get_root_element( ).
lt_children = lo_container->get_children( ).
LOOP AT lt_children ASSIGNING <fs_element>.
IF <fs_element>->id CS 'TABLE1'.
" Remove the element from the container
lo_container->remove_child(
EXPORTING
id = <fs_element>->id ).
endif.
ENDLOOP.
endmethod.
In my case the name of the table that I wanted to hide is 'TABLE1'.
Best of luck,
Saurabh