on 10-03-2008 11:18 AM
HI Everybody
I am developing an Application in which i need to develop a new menu. like purchase, sales and production i need to place a new menu..
is it possible and let me know thw information about it.
Thanks Regarding
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi narayan,
Dim oMenu As SAPbouiCOM.Menus = SBO_Application.Menus
Dim oFolderItem As SAPbouiCOM.MenuItem
Dim oMenuItem As SAPbouiCOM.MenuItem
If SBO_Application.Menus.Exists("Menu1") Then
SBO_Application.Menus.RemoveEx("Menu1")
End If
oMenuItem = SBO_Application.Menus.Item("43520")
oMenuItem = oMenuItem.SubMenus.Add("Menu1", "ZZZZ", SAPbouiCOM.BoMenuType.mt_POPUP, 9)
oFolderItem = oMenuItem.SubMenus.Add("SubMenu1", "AAA", SAPbouiCOM.BoMenuType.mt_STRING, 0)
oFolderItem = oMenuItem.SubMenus.Add("SubMenu2", "BBB", SAPbouiCOM.BoMenuType.mt_STRING, 1)
this code helps u to create a mainmenu and submenus under it between Production and MRP
Enjoy
regards,
varma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...
use this code it will work
Private Sub AddMenuItem()
Try
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim oMenus As SAPbouiCOM.Menus
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("2304") Rem under purchase module
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
If SBO_Application.Menus.Exists("MenuID") Then
SBO_Application.Menus.RemoveEx("MenuID")
End If
oCreationPackage.UniqueID = "SubMenu"
oCreationPackage.String = "SubMenu Name"
oCreationPackage.Enabled = True
oCreationPackage.Checked = True
oCreationPackage.Position = 0
oMenus = oMenuItem.SubMenus
oMenus.AddEx(oCreationPackage)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End Sub
Regards...
Billa 2007
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narayana Reddy
Search this forum for "menu"... You cam find more threads with examples.
Regards
Sierdna S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes its possible plz check the following sample which is provided be SAP SDK.
C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\05.AddingMenuItems
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
7 | |
7 | |
4 | |
3 | |
3 | |
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.