You use this method to delete a menu option in the office application:
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.
Description of parameters
Parameter |
Optional |
Description |
item_name |
The name of the new menu option | |
menu_bar_name |
X |
Name of the menu bar containing the menu menu_popup_name. |
menu_popup_name |
Name of the menu from which you want to delete the menu entry. | |
item_pos |
X |
This parameter is obsolete. Do not use it in new programs. |
If you do not specify the name of a menu bar, the menu is deleted from the main menu bar of the desktop application.