on 06-20-2015 3:07 PM
Hi Experts,
I am trying to follow below example in an effort to convert JAVA classes of SP03 into javascript:
However, when I try accessing below URL from browser:
https://SMPURL:8083/gateway/odata/SAP/CUSTOMQUERYTEST;v=1/MedCareSuppliersSet?$filter=MedCareSupplie... eq 'California'
In server logs I get below error:
com.sun.phobos.script.util.ExtendedScriptException: org.mozilla.javascript.EcmaError: ReferenceError: "FILTER" is not defined. (/CustomQueryTest/src/main/resources/script/MedCareSuppliersSet_SOAP_Query.js#77
I am attaching MedCareSuppliersSet_SOAP_Query.js file for reference. I am using SMP3 SP07.
Any idea why required package is not found although I am importing it.
Regards,
Affaan
Tags edited by: Jitendra Kansal (Moderator)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like you have commented below line.. can you uncomment it and then try?
importPackage(com.sap.core.odata.api.uri.expression);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Affaan,
Can you debug your custom script as per the SCN thread here and post your findings here?
Meanwhile I hope and could share some inputs here, as my understanding has been that importing com.sap.core.odata.api.uri.expression would be sufficient for getting access to FILTER/BINARY etc.
Thank you.
Pavel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.