Skip to Content
avatar image
Former Member

Filter on function import

I have a function import - Get implementation and would like to implement filtering on the attributes of entity. How do I implement it ?

Is is possible to achieve this functionality ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Sep 10, 2015 at 03:59 AM

    Function Imports will have parameters.

    Entity sets will have filters.

    So Function Imports cannot have filters, but same functionality can be achieved using input parameters.

    Do you know why are you specifically looking for filter? and not parameters?

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ekansh Saxena

      This is exactly what I was looking for. I tried to solve this by using json model and populating my json model using ajax calls.

      Somehow I missed this detail in SAP documentation but the blog nails it down. Sometimes extra network call associated with odata model is not required if the filtering has to happen for the data which is already present on client side.