Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem adding menu item

Hey All,

We have code from the SDK sample to add menu items. This works fine and adds our items to the main menu with no problems. When the add on is started manually through the addon administration the menu event handling behind this custom menu does not seem to work. If I start the addon manually from the exe file in the folder directly when B1 is running the logic works.

It seems very odd that it wouldn't work when B1 runs the program directly. Any ideas why this would happen? We are handling the menu event for menu 169 which is the main menu and when the user clicks the menu id that I added we open a new form. This logic works just fine when the add on is set to start automatically.

Any ideas?

Former Member
replied

be sure that when you use event filters that you enable menu_click

in C#

oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK);

than you can handle/get the menuevents

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question