Skip to Content
author's profile photo
Former Member

Error -111 DI API para SAP 9

Estimados buena tarde.

Tengo un pequeño addon que se conecta con el siguiente codigo:

sc.Server = "WIN-xx:30000" '

sc.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008

sc.CompanyDB = "SBO_XX"

sc.UseTrusted = False

sc.DbUserName = "sa"

sc.DbPassword = "S3XX"

sc.UserName = "manager"

sc.Password = "sqXX"

sc.language = SAPbobsCOM.BoSuppLangs.ln_English

frmPicking.Caption = sc.CompanyDB

lRetCode = sc.Connect()

If lRetCode = 0 Then

msgbox "coneccion correcta"

else

msgbox "coneccion error"

endif

Al quererme conectar me muestra el error -111

Anteriormente en SAP 8.82 me conectaba correctamente, ahora que nos estamos cambiando a SAP 9.0 muestra este error

Cualquier ayuda es bienvenida.

Saludos.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    Former Member
    May 26, 2015 at 02:51 PM

    Buenos días.

    Agregue la propiedad sc.LicenseServer a su código y si no funciona vuelva a probar usando la IP en vez del hostname.

    Saludos

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Excelente.

      Ahora si me conecto.

      Quedo de la siguiente manera:

      sc.Server = "WIN-M8Q0DFEQ8CF" sc.LicenseServer = "WIN-M8Q0DFEQ8CF:30000" sc.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2008 sc.CompanyDB = "SBO_X" sc.UseTrusted = False sc.DbUserName = "sa" sc.DbPassword = "S3x" sc.UserName = "manager" sc.Password = "sqx" sc.language = SAPbobsCOM.BoSuppLangs.ln_English frmPicking.Caption = sc.CompanyDB

      lRetCode = sc.Connect()

      If lRetCode = 0 Then MsgBox "Coneccion a SAP realizada exitosamente.", vbInformation Else MsgBox "Coneccion a SAP NO realizada." End If

      Gracias Felipe por toda tu ayuda.

      Saludos.

      Saul.