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

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"<br>

Issue is present in the last line where finding the DSO

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 26, 2017 at 11:12 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.