on 2020 Nov 12 7:38 AM
Hello There,
I am new here and to SAP Scripting as well, and i am trying to get the text from one of the displayed GUI screen at the give caretPosition (last but one line). Here is the recording ...
If Not IsObject(application) Then Set SapGuiAuto = GetObject("SAPGUI") Set application = SapGuiAuto.GetScriptingEngine End If If Not IsObject(connection) Then Set connection = application.Children(0) End If If Not IsObject(session) Then Set session = connection.Children(0) End If If IsObject(WScript) Then WScript.ConnectObject session, "on" WScript.ConnectObject application, "on" End If session.findById("wnd[0]").maximize session.findById("wnd[0]/tbar[1]/btn[17]").press session.findById("wnd[1]/usr/cntlALV_CONTAINER_1/shellcont/shell").pressToolbarButton "&FIND" session.findById("wnd[2]/usr/txtGS_SEARCH-VALUE").text = (Wscript.Arguments(0)) session.findById("wnd[2]/usr/txtGS_SEARCH-VALUE").caretPosition = 7 session.findById("wnd[2]/tbar[0]/btn[0]").press session.findById("wnd[2]/tbar[0]/btn[12]").press
appreciate your help
also please kindly suggest some resources to learn SAP VBScripting
Hara
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 6 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.