Hi All
I have created a VB.NET project that comprises of the following modules:
Connection Module - This module initiates the single sign-on connection. I have declared the following statement "Public oDICompany As SAPbobsCOM.Company" in my Global module.
After I initiate an event filter for form load on the Quotation, the oDICompany object looses the connection. The event filter triggers the form load the calls a function to populate a combo box.
If I call the function before the filter is initiated, then the following code works fine:
oRecordSet = oDICompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
sQuery = "Select empID,lastname from OHEM"
oRecordSet.DoQuery(sQuery)
Please help.