01-30-2008 7:58 AM
Hi Friends,
How we can create standard menu bar using class and methods.in that menu bar i need Drop down like below
1.Print preivew,
2.Export->Word proceesing
->Spread Sheet
->Local File
3.Import
4.print
When click the menu any option it should perform that operation .I was tried using the FM (REUSE_ALV_GRID_DISPLAY).it is working but oops how we can do.
Please Help me and send any sample code
Thanks
Nani
01-30-2008 8:04 AM
Hi,
Try doing this
While defining your calss add this method.
context menu
METHODS handle_context_menu
FOR EVENT context_menu_request OF cl_gui_alv_grid
IMPORTING e_object.
data :menu type ref to cl_ctmenu,
submenu type ref to cl_ctmenu.
CREATE OBJECT submenu.
*--Add Display All.
CALL METHOD e_object->add_function
EXPORTING
fcode = 'DALL'
text = 'Display All'.
CALL METHOD e_object->add_submenu
EXPORTING
menu = submenu
text = 'Display'.
Regards,
theja