Skip to Content
0

SAP Screen Personas Error during script execution: source is not defined

Jan 16 at 02:32 PM

89

avatar image

I have placed a label on a flavor and assigned onClick event

In the event, I require the ID of the control so I used following script

var labelId = source.id;

Though this code works successfully on

SAPK-30004INPERSONAS

It fails on an other SAP system

SAPK-30005INPERSONAS

Error detail

[Flavor:SalesClerk]>[Script:wnd[0]/scrptPersonas_00505686BC801ED7BED81024E553A9A7-openURL]:19:5 scriptingEngineModule/self.executeScriptInternal@.....:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/ScriptingEngine.js?20171102222708:61:10466 scriptingEngineModule/sap.personas.scripting.executeScriptInternal<@.....:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/ScriptingEngine.js?20171102222708:61:12752 sap.personas.fw.its.scripting.Runtime.prototype.execute/<@....:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/Runtime.js:1:435 W@....:8000/sap/bc/personas3/ui5/resources/sap-ui-core.js:155:1664 " tabindex="-1" style="direction:inherit">Error during script execution:
source is not definedanonymous@[AppID:SMEN]>[Flavor:SalesClerk]>[Script:wnd[0]/scrptPersonas_00505686BC801ED7BED81024E553A9A7-openURL]:19:5
scriptingEngineModule/self.executeScriptInternal@.....:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/ScriptingEngine.js?20171102222708:61:10466
scriptingEngineModule/sap.personas.scripting.executeScriptInternal<@.....:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/ScriptingEngine.js?20171102222708:61:12752
sap.personas.fw.its.scripting.Runtime.prototype.execute/<@......:8000/sap/bc/personas3/core/script/sap/personas/fw/its/scripting/Runtime.js:1:435
W@.....:8000/sap/bc/personas3/ui5/resources/sap-ui-core.js:155:1664

Is there anything that I can do to correct the problem?

Thanks,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

ERALPER YILMAZ Apr 03 at 05:43 AM
0

Thank you for references, though I could not find anything related with the error

Share
10 |10000 characters needed characters left characters exceeded
Cristiano Hansen
Mar 31 at 05:00 PM
0

Hi Eralper,

Check SAP note 2297199 and see whether the function is deprecated.
You can also check the API details in this wiki.

Regards,
Cris

Share
10 |10000 characters needed characters left characters exceeded
Cristiano Hansen
Apr 03 at 12:55 PM
0

Hi Eralper,

Can you give more details about the issue, so I can try to replicate it?

Thanks,

Cris

Share
10 |10000 characters needed characters left characters exceeded