Ver Mensaje Individual
  #2  
Viejo 16/03/17, 10:00:57
dabtgn dabtgn is offline
Junior Member
 
Fecha de Ingreso: mar 2017
Mensajes: 1
Conectar a SAP desde Excel

prueba con este código



Sub Prueba_AL11()
'
' Prueba AL11 Macro
'
'
Set SAPGuiAuto = GetObject("SAPGUI")
Set Aplicacion = SAPGuiAuto.GetScriptingEngine
Set Connection = Aplicacion.Children(0)
Set Session = Connection.Children(0)

' maximiza la pantalla de SAP
Session.findById("wnd[0]").maximize
' escoge la transición a enviar
Session.findById("wnd[0]/tbar[0]/okcd").text = "/n/AL11"

' llama a la transición
Session.findById("wnd[0]").sendVKey 0
Responder Con Cita