Skip to Content

Error connection Visual Studio to DI-API with HANA

Nov 29, 2016 at 12:23 PM


avatar image

Hello friends,

I have successfuly connected a Visual Studio project to DI-API in a SAP BO with SQL SERVER database environment. I used the SAPbobsCOM.cll. Now we have HANA and I guess the code to connect to the DI-API are very similar. But I'm getting the error -119 database type not supported.

I'm using SAPBusinessOneSDK.dll (We have SAP 9.2), and this is my code:

DI.Server = "hanab1:30015";

DI.LicenseServer = "hanab1:40000";

DI.CompanyDB = companyDB;

DI.DbServerType = BoDataServerTypes.dst_HANADB;

DI.DbUserName = "SYSTEM";

DI.DbPassword = "********";

DI.UserName = companyUser;

DI.Password = companyPassword;

DI.language = BoSuppLangs.ln_English;

DI.UseTrusted = false;

Any help will be very appreciated.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Francisco Velazquez Ruiz Feb 21, 2017 at 07:57 PM

I'm having the same issue

10 |10000 characters needed characters left characters exceeded