Hello
I've build a form "OBR" under a new menu "Operation" of MenuId="SM_OP" after Sales-A/R in SAPB1 2005 SP:00 PL:35.
Under "OBR" form there is another form "DPS" that is using the menu id of OBR form.
But the problem is----
each time after opening the SAP B1 the menu "Operation" is coming and first form "OBR" is coming properly. But whenever I click on any part of the SAPB1 it shows me----
"Mandatory Addon DPS is disconnected. Restart AddOn"
If I restart it for that time, it is disconnected after each 10 minutes.
I used filtering in coding of second form.
Private Sub SetFilters()
'// Create a new EventFilters object
oFilters = New SAPbouiCOM.EventFilters()
'// add an event type to the container
'// this method returns an EventFilter object
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CLICK)
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED)
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_KEY_DOWN)
'oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_COMBO_SELECT)
'oFilter.Add(2000050100)
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST)
oFilter.Add(2000050100)
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
SBO_Application.SetFilter(oFilters)
End Sub
Need Help.
Rgds
Subrata