2007 Sep 01 5:33 AM
hi friends..
i am using grid (oo)..
i want to delete all buttons in the menu.for that i used
g_grid->delete_all_menus..
but i got a error like fallow...
ACCESS TO PROTECTED METHOD "delete_all_menus" IS NOT ALLOWED
what it means , how can i get the result
2007 Sep 01 2:42 PM
Hello Deva
There is very simple way to remove the entire (toolbar) buttons:
DATA:
gs_layout TYPE lvc_s_layo.
...
gs_layout-no_toolbar = 'X'.
...
CALL METHOD go_grid->set_table_for_first_display
IMPORTING
...
is_layout = gs_layout
...
.
Regards
Uwe
2007 Sep 01 6:47 AM
<b>Hi deva,
Access to protected method 'delete_all_menus' is not allowed.
What this implies is that we cannot call a protected method
using an instance of that class. The class here is cl_gui_alv_grid
that has a method called 'delete_all_menus' , while the visibility
of this method is protected & hence it cannot be called using an instance of that
class.
All the components defined in the protected section is accessible to all the
methods of that class & of the classes that inherit from it.... thank you/
</b>
2007 Sep 01 2:42 PM
Hello Deva
There is very simple way to remove the entire (toolbar) buttons:
DATA:
gs_layout TYPE lvc_s_layo.
...
gs_layout-no_toolbar = 'X'.
...
CALL METHOD go_grid->set_table_for_first_display
IMPORTING
...
is_layout = gs_layout
...
.
Regards
Uwe
2007 Sep 02 7:06 AM
hi Uwe Schieferstein ..
thanks very much..
actually now i am in starting stage in oops abap..
your effort on my query is very helpful..