Skip to Content
avatar image
Former Member

Issue in finding the object when "/o T- code" screen is given using SAP GUI scripting

I am opening a table(Ex PSA1) in one tab of SAP after which i am trying to open new tab with /0rsa1 to view data in DSO but when i am trying to find a DSO in second tab using FIND option it's moving to first window(i.e PSA1 table) .

Issue is not being faced when am using "/n RSA1" as it will be having only one window opened.

Could someone please help on how to make the script understand to stay on "/o RSA1" screen and capture the DSO using FIND option.

session.findById("wnd[1]/usr/txtRSDS_S_GUIDSSEGMENT-PSA").caretPosition = 9
session.findById("wnd[1]").sendVKey 2
session.findById("wnd[0]/usr/txtI5-LOW").text = "90278"
session.findById("wnd[0]/usr/txtMAX_SEL").text = ""
session.findById("wnd[0]/usr/txtMAX_SEL").caretPosition = 11
session.findById("wnd[0]/tbar[0]/okcd").text = "/orsa1"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]/shellcont[0]/shell/shellcont[1]/shell/shellcont[1]/shell").selectItem "          2","1"
session.findById("wnd[0]/shellcont[0]/shell/shellcont[1]/shell/shellcont[1]/shell").ensureVisibleHorizontalItem "          2","1"
session.findById("wnd[0]/shellcont[0]/shell/shellcont[1]/shell/shellcont[1]/shell").clickLink "          2","1"
session.findById("wnd[1]/usr/txtRSAWBN_S_DYNPRO_1000-SEARCH_TERM").text = "DSO1"

Issue is present in the last line where finding the DSO

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers