Show TOC

Syntax documentationdelete_menu_item Locate this document in the navigation structure

You use this method to delete a menu option in the office application:

Syntax Syntax

  1. 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.
End of the code.
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.

Note 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.

End of the note.