on 03-26-2012 10:08 AM
please tell me how to create context menu
Hi,
Create a Menu in the layout within CONTEXT_MENUS and a MenuActionItem within this menu.
Then you need to add the following code in the method WDDOONCONTEXTMENU:
data l_menu_action_item type ref to cl_wd_menu_action_item.
menu = context_menu_manager->get_context_menu( 'YOUR_MENU' ).
l_menu_action_item ?= menu->get_item( id = 'YOUR_ACTION_ITEM' ).
l_menu_action_item->set_enabled( abap_true ).
Check also this document:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.