cancel
Showing results for 
Search instead for 
Did you mean: 

如何做到filter多条件过滤?

Expert
Active Contributor
0 Kudos

请教:条件查询,如果多个条件一起使用要怎么查呢?如下图  

Accepted Solutions (1)

Accepted Solutions (1)

Expert
Active Contributor
0 Kudos

你好,

可以参考以下样例:

读取 完全交货状态 = 否 且 工厂= 1310 的采购订单行项目:

https://XXXX.cn/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/A_PurchaseOrderItem?$expand=to_Purch... eq false and Plant eq '1310'

上面URL 中 $filter=IsCompletelyDelivered eq false and Plant eq '1310' ,即为使用两个字段条件筛选数据,两个字段条件通过 and 连接。

Answers (2)

Answers (2)

garyding
Product and Topic Expert
Product and Topic Expert
0 Kudos

每个查询条件后有+。点+可以添加一个查询条件

Expert
Active Contributor
0 Kudos

This is a re-posted Q&A of an earlier question on this community"