SAP Jobsuche bei DV-Treff


Suchen
ChrisGur
  • ChrisGur
  • SAP Forum - User Thema Starter
vor 12 Jahre

Hallo zusammen,

 

durch einen Datenaufbau möchte ich Daten aus SAP in Excel importieren.

CreateObject("sap.logoncontrol.1")
CreateObject("sap.functions")
CreateObject("sap.tablefactory.1")

 

Jedoch wird das Login-Feld nicht aufgerufen.

 

Kann mir einer sagen an was das liegt?

 

Danke der Rückmeldung.

Robben
vor 12 Jahre

Hallo ChrisGur,

ich habe dein Thema heute erst gesehen, falls du noch keine Lösung hast, hier die Anmeldung an SAP wie ich sie verwende:

'SAP Connenction
    Set Conn = Nothing
   
    'Preparation for connect
    Set Conn = CreateObject("SAP.Functions")
   
    'Connection with LogonPad
    If Conn.Connection.LogOn(0, False) <> True Then
       Exit Sub
    End If
   
    'Connection without LogonPad
'    Conn.Connection.System = "Entwicklungs-System"
'    Conn.Connection.ApplicationServer = "XXXXXX" 'DNS IP
'    Conn.Connection.SystemNumber = "0" 'Instanz
'    Conn.Connection.Client = "080" ' Mandant
'    Conn.Connection.User = "XXX" 'User
'    Conn.Connection.Password = "XXXXXXX" 'Password
'    Conn.Connection.Language = "DE" 'Sprache

Hoffe das hilft dir weiter

Robben