delete_menu_item 
You use this method to delete a menu option in the office application:
Syntax
CALL METHOD document->delete_menu_item EXPORTING item_name = item_name menu_bar_name = menu_bar_name menu_popup_name = menu_popup_name item_pos = item_pos no_flush = no_flush IMPORTING error = error retcode = retcode.
Parameter |
Optional |
Description |
|
The name of the new menu option |
|
|
X |
Name of the menu bar containing the menu menu_popup_name. |
|
Name of the menu from which you want to delete the menu entry. |
|
|
X |
This parameter is obsolete. Do not use it in new programs. |
Note
If you do not specify the name of a menu bar, the menu is deleted from the main menu bar of the desktop application.