You use this method to add a new entry to an existing menu bar that you have defined using the add_menu_bar method.
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.
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 |
If you do not specify the name of a menu bar, the menu is placed in the main menu bar of the desktop application.