on 03-09-2011 1:24 PM
Hi,
Everyone can help to find what is the table where i can select the menuid.
Because i´m to use the command Application.ActivateMenuItem and i need to know the menu id.
Regards
Hi,
My problem is that the id can change in each install.
But i can find id.
oMenu = company.Application.Menus.Item("47616");
for (int i = 0; i < oMenu.SubMenus.Count; i++)
{
if (oMenu.SubMenus.Item(i).String == "xxx - xxxxx")
MenuUID = oMenu.SubMenus.Item(i).UID;
}
if (!String.IsNullOrEmpty(MenuUID))
company.Application.ActivateMenuItem(MenuUID);
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To answer one of the other questions you had: the menu item definitions can be found in the database table OCMN. The main columns you'll probably be interested in are: "MenuUID" (which is the uid that you are interested in using), and "Name" (which is the text that appears on the menu item within SAP).
However, please note that values in the Name column are not guaranteed to be unique. That is, multiple records in the table can have the same Name (so be careful with this, if you look for a menu based on its name).
Hope that helps,
Joe
Hello
Turn on system information in view menu, and use the mouse in Modules menu to locate the menu id you would like to active. The menu id appears in the right bottom of the screen in info field (debug info)
Regars
János
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.