on 2024 Oct 22 1:53 PM
Request clarification before answering.
Filters within $expand work independent of the filter on the root.
Your example filters on root, and the $expand only filters on schedule lines, there is no filter on items.
Adding a filter in $expand for the items should return the desired result:
/sap/opu/odata4/sap/zsales_order_srv/srvd_a2x/sap/zsales_order/0001/SalesOrderHeader?$expand=_Item($filter=_Schedule/any(t: t/ScheduleLine eq '3');$expand=_Schedule($filter=ScheduleLine eq '3'))&$filter=(SoldToParty eq '654') and _Item/any(r: r/_Schedule/any(t: t/ScheduleLine eq '3'))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.