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 6.70.184.0, 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
Societa.Disconnect
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?
Thank
A. D'Angelo
Hi Antonio,
Did you get this fixed in the meantime?
Did you try it with 185.05?
Regards,
Frank
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