Showing results for 
Search instead for 
Did you mean: 

System Form BOM has property Menu = nothing always.

Former Member
0 Kudos

When system form BOM (Bill Of Material) is opening, i want add a menu with SAPbouiCOM.MenuCreationParams. But m_sboFrm.Menu is nothing, then m_sboFrm.Menu.AddEx get error.

Also during the use of the form, m_sboFrm.Menu is nothing.

Is it impossible to add a menu in form BOM?


' Menu


Dim l_sboCreationPackage As SAPbouiCOM.MenuCreationParams

l_sboCreationPackage = SboApp.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)

l_sboCreationPackage.Checked = False

l_sboCreationPackage.Enabled = True

l_sboCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING

l_sboCreationPackage.UniqueID = mc_sSBO_MENU_ItemUpdateCost l_sboCreationPackage.String = "Aggiorna Costo del Finito"

'the next function get error, because m_sboFrm.Menu is nothing


Note: iI use this code in other system form, and it is all ok.

Thanks, Andrea

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Hi Andrea,

This is certainly because the "Goto" menu for the BOM is empty.

Did you try to add your menu through the "Goto" menu in the application object's menus collection?



Answers (0)