Skip to Content
Former Member
Jul 07, 2016 at 10:00 AM

Addon to connect with multiple company.


Hi experts,

I am trying to create BP master in all sub-level companies while it got created in Main Company. I using DI-API to connect to another company other than the connected SAP B1 company. ie., I am login to Main company. If BP is created , then the same BP has to be created in another three companies.

Sample coding Tried:

ocompany = New SAPbobsCOM.Company

ocompany.Server = server '

ocompany.CompanyDB = SAPDB '"PMITest"

ocompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008

ocompany.DbUserName = db_uid '"sa"

ocompany.DbPassword = db_pwd

ocompany.UserName = SAPUser '"manager"

ocompany.Password = SAPpwd '"1234"

ocompany.language = SAPbobsCOM.BoSuppLangs.ln_English

ocompany.UseTrusted = False

ocompany.LicenseServer = Licsrvr '

But I am getting the error like Unable to access SBO-Common .

Any suggestion is highly appreciated.

Thanks & Regards,

Parvatha Solai.N