cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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

View Entire Topic
Stefan-Schnell
Active Contributor

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