Skip to Content
author's profile photo Former Member
Former Member

System Form BOM has property Menu = nothing always.

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 13, 2005 at 02:32 PM

    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?



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.