Quantcast
Channel: SCN: Message List - Scripting Languages
Viewing all articles
Browse latest Browse all 1708

SAP Logon with VBA

$
0
0

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


Viewing all articles
Browse latest Browse all 1708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>