Skip to Content

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

What is the advantage of FunctionImport of GW

Hi All,

I am looking to find out the advantage of NW GW function Import , in my case I don't see a great advantage of it we can get the same by the filtering the URL ..? for e.g.

Using Filter to the URL I can give my conation check and the same function import is doing.... please let me know is there any particular use of it

http://services.odata.org/OData/OData.svc/Products/?$filter = Rating gt 2

http://services.odata.org/OData/OData.svc/GetProductsByRating?rating=3

if we can implement the read operation with all the table fields I think the the filter do the same as Function Import, correct me.

And Function import will work only for '=' , can't do like

http://services.odata.org/OData/OData.svc/GetProductsByRating?rating>3

http://services.odata.org/OData/OData.svc/GetProductsByRating?rating>3..etc ?

Thanks

Rajesh

Former Member
replied

Rajesh,

Function Import should be your last resort to achieve a functionality within OData.

If you can achieve something without Function import, you should do it that way.

Read here for an earlier discussion on same lines.

Function Imports - USE

regards

Krishna

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