Skip to Content

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

Is it necessary to have filter fields in the entity type?

Hi,

I have an entity type.... with the following fields

Employee ID

Employee Name

In the url, I want to pass along with the entity set name two other filter parameters

For eg.

http://nwfront.abc.net:2020/sap/opu/odata/sap/ZMY_SRV/allRulesSet?$filter=DepartmentID eq '1' and DepartmentName eq 'Testing'

Based on these filters, I want to get all the employees id and names in the get_entityset method in the export parameter et_entityset

Is it possible?

I don't want to include the Department ID and Department Name fields in the entity type as my model will have duplicates ( same values repeated) for these fields all over and unwanted columns.

Thanks and Regards,

Gopa

Tags:
Not what you were looking for? View more on this topic or Ask a question