Skip to Content
Former Member
Sep 20, 2005 at 09:50 AM

Connection to SAPBobsCom


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"


Please help.