cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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) .

session.findById("wnd[0]/tbar[1]/btn[41]").press
session.findById("wnd[1]/usr/txtRSDS_S_GUIDSSEGMENT-PSA").setFocus
session.findById("wnd[1]/usr/txtRSDS_S_GUIDSSEGMENT-PSA").caretPosition = 9
session.findById("wnd[1]").sendVKey 2
session.findById("wnd[0]/tbar[1]/btn[46]").press
session.findById("wnd[0]").maximize
session.findById("wnd[0]/usr/txtI5-LOW").text = "90278"
session.findById("wnd[0]/usr/txtMAX_SEL").text = ""
session.findById("wnd[0]/usr/txtMAX_SEL").setFocus
session.findById("wnd[0]/usr/txtMAX_SEL").caretPosition = 11
session.findById("wnd[0]/tbar[1]/btn[8]").press
session.findById("wnd[0]/tbar[0]/okcd").text = "/orsa1"
session.findById("wnd[0]").sendVKey 0
session.findById("wnd[0]").maximize
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"<br>

Issue is present in the last line where finding the DSO

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182766
Contributor
0 Kudos

Is your question about BW/4HANA? Why are you searching for DSO in GUI and not in BW perspective tree?

Former Member
0 Kudos

No, My question is in SAP Record and Playback option, script is not able to record the object when I give any T-code with "/o " instead of "/n ". Eg:- /o rsa1 -> find DSO1. Script is not getting recorded in this case.