Skip to Content

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

UDT to the Main Menu

Hi,

How do I add the UDT menu from Tools>User-Defined Windows to Main menu...C#

Thank you,

Rune

replied

Hi Rune,

1. you have to catch the MenuEvent handler for this

if pval.MenuUID = "YourMenuUID" and pval.beforeaction = false then

2. implement this code there (i used this in sbo 2005)

the trick is to catch the Tools / Usertables menu and go through all entries with comparing the name

        Set oMenu = oSBO.appl.Menus.item("51200")
        For i = 0 To oMenu.SubMenus.count - 1
           If oMenu.SubMenus.item(i).String = "B1C_JOKB - Journal Karriere - Bonus" Then
            MenuUID = oMenu.SubMenus.item(i).UID
           End If
        Next
        oSBO.appl.ActivateMenuItem (MenuUID)

3. and this time it's in vb6 - it's old code but you can convert it and ask me

lg David

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