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

Hello Marco,

in your example is $8A-YEAR the fieldname from the dynpro. If you have an enumeration like [1] it means that there are a few objects of the same type on the same level, e.g. like tbar[0] and tbar[1] on /app/con[0]/ses[0]/wnd[0]. In your example it seems that there are a few combo boxes (ctxt) on the same level. I have never seen an enumeration on this kind of object. I tried it and I got an error message that wnd[0]/usr/ctxt[1] is not an existing ID. As far as I know you have no influence from SAP GUI Scripting to the fieldnames or the enumerations of the objects.

Cheers
Stefan

0 Likes

could you please regard my Responses below?