Skip to Content
0
Former Member
May 11, 2010 at 10:54 PM

Error when trying to get DI API from UI API

46 Views

Hi.

I have this code:

SAPbouiCOM.SboGuiApi SboGuiApi = null;
            string sConnectionString = null;

            SboGuiApi = new SAPbouiCOM.SboGuiApi();

            //sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";
            sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";

            SboGuiApi.Connect(sConnectionString);
            SBO_Application = SboGuiApi.GetApplication(-1);
            SBO_Company = (SAPbobsCOM.Company)SBO_Application.Company.GetDICompany();

I get this error at the last line:

Internal error (-112) occurred [131-183] -

Any Idea why?