I have a conflict in my macro, when I added the Microsoft Outlook 15.0 Object Library reference in VBA, all other SAP related macros do not work in the line of access code to the transaction.
Does anyone know what can be due?
This is the code I'm using:
'Rutina de inicio, llama a SAP
If Not IsObject(Appli) Then
Set SapGuiAuto = GetObject("SAPGUI")
Set Appli = SapGuiAuto.GetScriptingEngine
End If
If Not IsObject(Connection) Then
Set Connection = Appli.Children(0)
End If
If Not IsObject(session) Then
Set session = Connection.Children(0)
End If
'Elegimos la transación esta es la línea donde me da el ERROR
session.findById("wnd[0]/tbar[0]/okcd").Text = "ME5A"
The error I receive is:
Run-time error '438': The object does not support this property or method.