I have used the following code for SAP Logon with vba ( sap 720).
Dim pfad1
Dim SapGui As SAPFEWSELib.GuiApplication
Dim Connection As SAPFEWSELib.GuiConnection
Dim Session As SAPFEWSELib.GuiSession
Dim Applic
If SapGui Is Nothing Then
Set SapGui = CreateObject("Sapgui.ScriptingCtrl.1")
End If
If Connection Is Nothing Then
Set Connection = SapGui.OpenConnection("test")
End If
If Session Is Nothing Then
Set Session = Connection.Children(0)
End If
pfad1 = (Environ("USERPROFILE")) & "\data\"
Set Applic = SapGui.GetScriptingEngine
Set Session = Connection.Children(0)
Session.findById("wnd[0]").maximize
Session.SendCommand ("/test").
So far it has worked wonderfully.
Since a few days sap 730 was installed and the sap logon doesn't work.
i get the error:
error-number:1000
SAP Logon connection entry not found
What has changed?
Can someone help me
thanks:
'''''
isdissolved.
I have copied thelogon.ini
to
AppData \ Roaming\SAP\ Common
andnow works