cancel
Showing results for 
Search instead for 
Did you mean: 

Table of MenuId

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I hope this help:

[;

Thank you

Former Member
0 Kudos

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