cancel
Showing results for 
Search instead for 
Did you mean: 

i want to create a menu after reports in 9.1 sap b1

Former Member
0 Kudos

now am giving this menu id  43520

but in 9.1 its showing below human resources module

i want that after reports means Last

please help

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nikhil,

To add menu:

SAPbouiCOM.MenuItem oMenuItem = default(SAPbouiCOM.MenuItem);

                SAPbouiCOM.Menus oMenus = default(SAPbouiCOM.Menus);

                SAPbouiCOM.MenuCreationParams oCreationPackage = default(SAPbouiCOM.MenuCreationParams);

                try

                {

                    oMenuItem = SBO_Value.SBO_Application.Menus.Item(UniqueID);

                    return;

                }

                catch

                {

                }

                oCreationPackage = (SAPbouiCOM.MenuCreationParams)SBO_Value.SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams);

                oMenuItem = SBO_Value.SBO_Application.Menus.Item(ParentMenu);

                oMenus = oMenuItem.SubMenus;

                oCreationPackage.Type = MenuType;

                oCreationPackage.UniqueID = UniqueID;

                oCreationPackage.String = Name;

                oCreationPackage.Enabled = true;

                oCreationPackage.Position = Position;

                oCreationPackage.Image = ImagePath;

                oMenus.AddEx(oCreationPackage);

You need to change your Menu Position. So just increment it by 1.

Hope it helps.

Thanks & Regards

Ankit Chauhan

Answers (0)