I'm trying to change the name of a field label with the following code:
session.findById("wnd[0]/usr/subSCREEN:SAPLWB2A:*/subGENERAL_SUB:SAPLWB2A:0104/txtKOMWBHD-SUPERFIELD_NAME").text = 'Supplier';
but I get the following error:
A running Personas script could have caused this error. Please check your active scripts.
Received "failed to set value: readonly" on batch step: {"post":"value/wnd[0]/usr/subSCREEN:SAPLWB2A:*/subGENERAL_SUB:SAPLWB2A:0104/txtKOMWBHD-SUPERFIELD_NAME","content":"Supplier","__added_by_personas_scripting__":"X"}
The complete batch was:
[{"post":"vkey/0/ses[0]","__added_by_personas_scripting__":"X"},{"post":"value/wnd[0]/usr/subSCREEN:SAPLWB2A:*/subGENERAL_SUB:SAPLWB2A:0104/txtKOMWBHD-SUPERFIELD_NAME","content":"Supplier","__added_by_personas_scripting__":"X"},{"get":"state/ur/","__added_by_personas_scripting__":"X"}]