Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

Regards,

Affaan

Tags edited by: Jitendra Kansal (Moderator)

Tags:
replied

Hi,

We have fixed this issue. I am attaching the JS file in case someone else faces same issue. Still would request to author of How to Handle Filters in Soap Operations to please comment on our fix and why the one mentioned in the blog was not working.

Best Regards,

Affaan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question