on 11-27-2017 11:54 AM
Hi,
i want to filter all aufnr but 1 and 2. This is the request:
MySet?sap-client=100&$select=Line,Value1,Value2&$filter=(((((Date ge datetime"2017-08-19T00:00:00" and Date le datetime"2017-11-26T23:59:59"))) and ((Aufnr ne "1") and (Aufnr ne "2"))))&$inlinecount=allpages
Debugging the DPC_EXT class shows that IT_FILTER_SELECT_OPTIONS is empty, because class /IWCOR/CLDS_EXPR_SELOPT throws Exception /IWCON/cx_DS_expor_selopt_error
Its not possible to determine a binary relation for two select-options.
Filter "aufnr NE 1" only works fine.
Used Gateway Version:
SAP_GWFND 740 0015 SAPK-74015INSAPGWFND SAP Gateway Foundation 7.40
Any idea to solve this?
BR
I also have the same issue. With an and of to not equals the Gateway discards completely the query.
$filter=(Aufnr ne "1") and (Aufnr ne "2") a filter like this doesn't work. Does anyone have any solution for this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tiago,
Ideally you should open a new thread and post your query but anyways go through this. It has sample implementation and a SAP note reference.
Hello ,
MySet?sap-client=100&$select=Line,Value1,Value2&$filter=((Date ge datetime"2017-08-19T00:00:00" and Date le datetime"2017-11-26T23:59:59") and (Aufnr ne "1" or Aufnr ne "2"))&$inlinecount=allpages
try the above set, it will work, it works for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.