Why is SAP GUI script recording using different spellings for the same field?
e.g.
session.findById("wnd[0]/usr/ctxt$8A-YEAR").text
session.findById("wnd[0]/usr/ctxt[1]").text
And how to influence it?thanks
Marco
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hello Marco,
last night I thought about your problem and I had an idea which I tested this morning: There is an option "Low Speed Connection" at the network properties in the SAP logon. If it is enable you don't get the field names, only an enumeration.
In SAP note 161053 we find the reason: As of SAP GUI 4.6D, the "Low Speed Connection" function was changed in such a way that the system no longer transfers screen field names either because this is too resource-intensive in the LSC environment.
In my case this option is always disabled, so it is no wonder that it works differently as in your case. If it is possible for you, disable that, because to work with the dynpro fieldnames is better. On this way the script identifies the object definitely with its name, not with the position. If the position was changed, your script don't work anymore or not correctly, but with the name is the position all the same.
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.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.