on 07-15-2015 8:44 PM
On most all of our PCs using SAP version 7200 2..5 or 3.0 when using Script Recording and Playback to record an action, the script recorded shows Field Labels as the name for the field used. But on a few PC's Field Names are shown,
Example: session.findById("wnd[0]/usr/ctxt[42]").text = "dsc010" uses Field Labels
sessionfindById("wnd[0]/usr/ctxtARBPL-LOW").text = "dsc010" using Field Names
What setting in SAP GUI will set all fields to use the LABEL instead of the NAME?
Hello Tom,
welcome in the Scripting Language forum.
It could be a problem of the Low Speed Connection entry in your System Entry Properties, check the settings.
It must be set equal on all systems.
SAP note 587202:
If the low speed connection indicator is set for a connection, the system transfers less information to the SAP GUI. As a result, the scripting component is missing the field names that are required for the names and IDs of the objects in the scripting model. Errors then occur (for example, with FindById).
Let us know your results.
Cheers
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use the indirect way with a variable:
session.findById("wnd[0]/usr/ctxt[" & i & "]").text = "dsc010"
The code for the first 10 fields:
For i = 1 to 10
session.findById("wnd[0]/usr/ctxt[" & i & "]").text = "dsc010"
next
I don't know if you can count all ctxt-fields in one modus.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.