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
0 Likes

Hello Stefan,

I recorded entries in the same field in a selection screen of a report with "script recording & playback" at two different point of times.

At the first point of time the Recorder wrote:

session.findById("wnd[0]/usr/ctxt[1]").text.

A few weeks later the Recorder wrote, while doing exactly the same as before:

session.findById("wnd[0]/usr/ctxt$8A-YEAR").text.

If I try to run the older scripts with the first spelling, then they don't run anymore. Only if I record a new script with the second spelling, it runs well again. But I would like have that under control. Is there an individual Setting, that might have changed?