Skip to Content
Former Member
Jun 20, 2015 at 02:07 PM

Custom Query Javascript. importPackage Not found


Hi Experts,

I am trying to follow below example in an effort to convert JAVA classes of SP03 into javascript:

How to Handle Filters in Soap Operations

However, when I try accessing below URL from browser:

https://SMPURL:8083/gateway/odata/SAP/CUSTOMQUERYTEST;v=1/MedCareSuppliersSet?$filter=MedCareSuppliersID 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.



Tags edited by: Jitendra Kansal (Moderator)