Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Automa
Automa
Session.findById("wnd[0]").maximize
'Configurando la transacción
session.findById("wnd[0]/tbar[0]/okcd").text = "/nmb21"
session.findById("wnd[0]/usr/ctxtRM07M-WERKS").setFocus
session.findById("wnd[0]/usr/ctxtRM07M-WERKS").caretPosition = 4
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/usr/ctxtRKPF-UMLGO").text = "A002"
'Registro de variable Z
z = 0
For x= 8 To i
voltar
If z = intRwVisible Then
intScrollbar = intScrollbar + intRwVisible
session.findById("wnd[0]/usr/sub:SAPMM07R:0521") .verticalScrollbar.Position =
intScrollbar
z = 0
Else
'Regristro de material
session.findById("wnd[0]/usr/sub:SAPMM07R:0521/ctxtRESB-MATNR[0," & z &
"]").text = shtRESER.Cells(x, 2).Value
'Registro de Cantidad
session.findById("wnd[0]/usr/sub:SAPMM07R:0521/txtRESB-ERFMG[0," & z &
"]").text = shtRESER.Cells(x, 3).Value
session.findById("wnd[0]/usr/sub:SAPMM07R:0521/ctxtRESB-ERFME[0," & z &
"]").text = shtRESER.Cells(x, 4).Value
z = z + 1
End If