Skip to Content
0
Mar 04 at 09:54 AM

The control could not be found by id

35 Views

Hi,

I use VB.net with code below:

System.Threading.Thread.Sleep(2000) SapGuiAuto = GetObject("SAPGUI") Sapplication = SapGuiAuto.GetScriptingEngine Connection = Sapplication.Children(Sapplication.Connections.Count - 1) Session = Connection.Children.Item(0) Session.findById("wnd[0]").resizeWorkingPane(178, 35, False) Session.findById("wnd[0]/tbar[0]/okcd").Text = "QE01" Session.findById("wnd[0]").sendVKey(0) Session.findById("wnd[0]/usr/ctxtQALS-PRUEFLOS").text = IL Session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").text = Op Session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").setFocus Session.findById("wnd[0]/usr/ctxtQAQEE-VORNR").caretPosition = 4 Session.findById("wnd[0]").sendVKey(0) Session.findById("wnd[0]/usr/tabsEE_DATEN/tabpSISP/ssubSUB_EE_DATEN:SAPLQEEM:0202/tblSAPLQEEMSUMPLUS/txtQAQEE-SUMPLUS[8," & line & "]").text = result --> debug this line with "The control could not be found by id"

Could you please help to solve problem?

Thanks.