Skip to Content
0
Former Member
Nov 04, 2014 at 06:53 PM

Sap Silent logon doesn't work anymore

122 Views

Hi

I could log on to SAP with a silent log on with this code

Dim R3 As Object

Dim SilentLogon As Boolean = True

R3 = CreateObject("SAP.Functions")

R3.Connection.SYSTEM = sapSystemId

R3.Connection.Client = sapNumber

R3.Connection.User = sapUser

R3.Connection.Password = sapPassword

R3.Connection.Language = "EN"

If R3.connection.logon(0, SilentLogon) <> True Then

MessageBox.Show("Logon to SAP failed!" & vbCrLf & vbCrLf _

& "Please check: " & vbCrLf & vbCrLf _

& "1. Your Credentials" & vbCrLf _

& "2. Your Internet Connection", "Logon Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

Else

MessageBox.Show("Logon to SAP succeeded!", "Logon Success", MessageBoxButtons.OK, MessageBoxIcon.Information)

R3.connection.logoff()

End If

But now, this doesn't work anymore

When I try to logon with silentlogon = false I get the popup window and I can log on normally.

Does anybody know what might go wrong here?

Thanks

Ton