Skip to Content

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

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,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 03 at 05:43 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 31 at 05:00 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 03 at 12:55 PM

    Hi Eralper,

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

    Thanks,

    Cris

    Add comment
    10|10000 characters needed characters exceeded