Show TOC

Syntax documentationadd_menu_popup Locate this document in the navigation structure

You use this method to add a new entry to an existing menu bar that you have defined using theadd_menu_bar method.

Syntax Syntax

  1. CALL METHOD document->add_menu_popup
    EXPORTING name = name
    menu_bar_name = menu_bar_name
    insert_before_popup = insert_before_popup
    parent = parent
    popup_before = popup_before
    no_flush = no_flush
    IMPORTING error = error
    retcode = retcode.
End of the code.
Description of parameters

Parameter

Optional

Description

name

The name of the new menu

menu_bar_name

X

The name of the menu bar where the menu will be added

insert_before_popup

X

The position of the item before which the new menu will be added (0: Place at end)

parent

X

Not used

popup_before

X

Not used

Note Note

If you do not specify the name of a menu bar, the menu is placed in the main menu bar of the desktop application.

End of the note.