Right now I'm running an Excel script in SAP as this:
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/btnPUSH[4,6]").press
Session.findbyid("wnd[1]/tbar[0]/btn[0]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[1]/tbar[0]/btn[24]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[1]/tbar[0]/btn[8]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 27
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 54
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 81
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").Text = "20"
' Session.findById("wnd[0]/usr/GuitextfieldSTATUS").Text = "20"
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").SetFocus
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").caretPosition = 2
Session.findbyid("wnd[0]").sendvkey 8
Yet when I change the SAP to my laptop screen it doesn't work because SAP loses row per page. What is the syntax to open up a SAP field by Technical name and paste multiples in there.
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/btnPUSH[4,6]").press
Session.findbyid("wnd[1]/tbar[0]/btn[0]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[1]/tbar[0]/btn[24]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[1]/tbar[0]/btn[8]").press
Application.Wait (Now + TimeValue("00:00:01"))
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 27
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 54
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC").verticalScrollbar.Position = 81
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").Text = "20"
' Session.findById("wnd[0]/usr/GuitextfieldSTATUS").Text = "20"
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").SetFocus
Session.findbyid("wnd[0]/usr/tblSAPLSE16NSELFIELDS_TC/ctxtGS_SELFIELDS-LOW[2,1]").caretPosition = 2
Session.findbyid("wnd[0]").sendvkey 8
Yet when I change the SAP to my laptop screen it doesn't work because SAP loses row per page. What is the syntax to open up a SAP field by Technical name and paste multiples in there.