cancel
Showing results for 
Search instead for 
Did you mean: 

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

eralper_yilmaz
Participant
0 Kudos

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,

Accepted Solutions (0)

Answers (3)

Answers (3)

cris_hansen
Advisor
Advisor
0 Kudos

Hi Eralper,

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

Thanks,

Cris

eralper_yilmaz
Participant
0 Kudos

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

cris_hansen
Advisor
Advisor
0 Kudos

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