Skip to Content
author's profile photo Former Member
Former Member

Error -112 while connecting to a company with DI API 2004

While I'm connecting to a Company using Single Sign One DI/UI API the method Connect returns the error:

-112 : Error extracting dll from cab

I've erased SM_OBS_DLL folder from temp, the version of the DI API is, the version of SAP BO is 2004A (6.70.184) SP:00 PL:01 and the code the I use is:

  • Main Method *******************

Sub Main()

Set Applicazione = New SboGuiApi

StringaConnessione = command

Applicazione.Connect StringaConnessione

Dim frm As Form1

Set frm = New Form1

frm.Visible = False

Load frm

frm.Timer1.Interval = 30000

End Sub


  • Timer ***********

Private Sub Timer1_Timer()

Set Eventi = New FatMasSBO

Set ApplicazioneBO = Eventi.applic

Timer1.Enabled = False


  • Init FatMasSBO *********

Private Sub Class_Initialize()

Dim i As Long

Dim ii As Long

Dim iii As Long

Set applic = Applicazione.GetApplication

Set Societa = New SAPbobsCOM.Company

Cookie = Societa.GetContextCookie

ConStr = applic.Company.GetConnectionContext(Cookie)

If Societa.Connected = True Then


End If

Ret = Societa.SetSboLoginContext(ConStr)

If Not Ret = 0 Then

applic.MessageBox "Metodo SetSboLoginContext fallito!"

Exit Sub

End If

Ret = Societa.Connect()

If Ret <> 0 Then

NonConnesso = True

applic.MessageBox "Errore di connessione al DB : " & Ret

End If

End Sub


How I can solve this problem?


A. D'Angelo

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 11, 2005 at 10:11 AM

    Hi Antonio,

    Did you get this fixed in the meantime?

    Did you try it with 185.05?



    PS: Usually such a question should be sent to SAP Support via SAP Service Marketplace, but I am sure you only posted it here because you had the problem before "general availability" of 2004, right?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.