Supported OData Query Options

Hi all,
OData supports query options like $filter=cityfrom eq 'SINGAPORE' or $select=...
(A full list can be found [here|http://www.odata.org/media/16352/%5Bms-odata%5D.pdf])
1) Which options are supported by Gateway?
2) What is the "Gateway Solution" to filter the result of the GetList/Query command for a specific entity?
(e.g. return all flights with city of departure equal to 'Singapore')
Best Regards,
Florian

Hi Ron Sargeant
Problem is when i apply filter and data has a Slash ("\") for e.g company\ali.naveed
its give me error.
http://192.168.59.229:8080/gateway/odata/sap/EmployeeDataList;v=1/Employee?$filter= DomainAndUsername eq 'company\ali.naveed'
if i query without Slash ("\") for example in email  its working.
/Employee?$filter= Email eq '[email protected]'
what is process to fetch data which contain a slash("\")?
Regard
Ali

Similar Messages

  • Gateway BOPF Integration - Support of query options $top, $skip, $inlinecount

    Hi Experts,
    I am using GBI to consume data from a BOPF BO via OData. For some special cases I need the query options $top, $skip and $inlinecount.
    But it seems that these query options are not supported until now (I have Component SAP_BS_FND 747 SP04 installed).
    Is that true? If yes, is it planned to support the query options in an upcoming version.
    Thx for your help.
    Florian

    Hello Florian,
    I cannot speak for GBI and I hope that someone else will have an answer for you. Still I hope that the following might help:
    As you are requesting for $top and $skip I guess(?) you have a read-only UI for a large number of entries. If this is the case, upcoming versions might offer a solution for you with SADL-based gateway services. Please refer to this post.
    Kind Regards,
    Ivo

  • Problem with odata with custom query options

    I have a datasource which uses custom query options
    http://www.odata.org/documentation/odata-version-3-0/url-conventions/#url5.2
    But those query options are not getting sent by Power Query with the $top requests.  Hopefully this is something you will correct in a subsequent release.
     - Chris

    Here's the sequence of calls that Power Query makes:
    GET /odata/catalog/test?$orderby=name&param=70442
    GET /odata/catalog/$metadata
    GET /odata/catalog/test?$orderby=name&$top=1000
    GET /odata/catalog/test?$orderby=name&param=70442
    GET /odata/catalog/$metadata
    GET /odata/catalog/test?$orderby=name
    GET /odata/catalog/test?$orderby=name&param=70442
    The problem, as you can see, is that two of the calls did not include the "param" parameter which is resulting in incorrect behaviour. Is this a bug?
    Thanks,
    Chris

  • OData group by query option

    Hi,
    I recently created an OData Service with the Netweaver Gateway Service Builder (SEGW), but unfortunately the grouping of properties does not seem to work as I know it from XS OData services.
    When I call the url below on an XS OData, I get a result where A and B are aggregated by YEAR
    .../odata/CA_CFA.xsodata/cfa?$select=A,B,YEAR
    This grouping does not work the same when I call the same $select parameter on the OData service I defined in SEGW.
    The properties A and B have the semantic set to "aggregate" and YEAR is set as a dimension.
    Is there a way to achieve the same behaviour with the ABAP OData service as with the XS OData service?
    Thank you!

    Hi,
    $select will return the field specified in resultset in OData query. for e.g. http://services.odata.org/OData/OData.svc/Products?$select=Rating,Price
    aggregation is not supported by OData version 2.0 on which SAP Gateway is based on.
    It will be available in OData 4.0 as mentioned here OData Extension for Data Aggregation Version 4.0
    you need to implement the grouping logic on client side. refer this discussion on similar lines Get a count of a linked collection using OData and LINQ - Stack Overflow
    Regards,
    Chandra

  • Odata query not supporting $filter $stop $expand

    Hi everyone,
    I am just trying to  call a odata query to uodate a attribute
     I get this error:The status always return me 400.Please Help
      responseText "{Query options $expand, $filter, $orderby, $inlinecount, $skip and $top cannot be applied to the requested resource.}" String
    Here ia a part of my code:
    //my odata request
      var oDataPath = ServerUrl + "/XRMServices/2011/OrganizationData.svc";
        var oData = oDataPath + "/AppointmentSet?$select=Category&$filter=ActivityId eq guid'" + appointmentid + "'";
     var req = new XMLHttpRequest();
                       req.open("POST", encodeURI(oData), false);
                        req.setRequestHeader("Accept", "application/json");
                        req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                        req.setRequestHeader("X-HTTP-Method", "MERGE");
                        req.onreadystatechange = function () {
                            if (this.readyState == 4 /* complete */) {
                                req.onreadystatechange = null;
                                if (this.status == 204 || this.status == 1223) {
                                    successCallback();
                                else {
                                    debugger;
                                   errorCallback(SDK.REST._errorHandler(this));
    Thanks
    Surbhi

    Hi, 
       Use below code to resolve your error
    function Retrieve() {
                        var oDataPath = ServerUrl + "/XRMServices/2011/OrganizationData.svc";
                     var oData = oDataPath + "/AppointmentSet?$select=Category&$filter=ActivityId eq guid'" + appointmentid
    + "'";
    var retrieveReq =
    new XMLHttpRequest();
    //alert(Odata);
            retrieveReq.open("GET",
    oData,
    false);
            retrieveReq.setRequestHeader("Accept",
    "application/json");
            retrieveReq.setRequestHeader("Content-Type",
    "application/json; charset=utf-8");
            retrieveReq.onreadystatechange =
    function () { retrieveReqCallBack(this);
            retrieveReq.send();
    function retrieveReqCallBack(retrieveReq) {
        if (retrieveReq.readyState == 4
    /* complete */) {
    var retrieved =
    this.parent.JSON.parse(retrieveReq.responseText).d;
    var category= retrieved.results[0].Category;       

  • OData Query Sharepoint Rest -Filter between two date.

    Hello ,
    I'm access sharepoint list using Odate Query rest operations. 
    I am facing issue to fetch filtered data from sharepoint list. If the todays date is between StartDate and EndDate .Then it should display records .
    Ex: todays date = 26-Mar-2015
    my sharepoint list like below :
          Tile
          Sales
      StartDate
    EndDate
    1
    50
      23-03-2015
    28-03-2015
    2
    434
      21-04-2015
    23-04-2015
    3
    88
      19-04-2015
    23-04-2015
    4
    223
      17-03-2015
    28-03-2015
    So it sould return only 1st and 4th row.
    var serverUrl =
    theSiteUrl +
    "/_api/web/lists/GetByTitle('" + dvListName + "')/items?" +
    "$select=Title,Sales/Title,Body,StartDate,EndDate" +
    "&$filter=(today Gt StartDate and today Lt EndDate)"+
    "&$expand=Sales";
    the above Query I tried but not working..
    How can I achieve this ?

    Today option is not available in SharePoint REST. As a workaround, you can create a JavaScript variable which holds today's date and convert it to ISO date format before using it in the REST query:
    var today = new Date();
    today = today.toISOString();
    See this for more information: http://sharepoint.stackexchange.com/questions/105576/rest-api-filter-by-start-and-end-dates-using-today
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • SPWeb.ProcessBatchData - why no support for query-based updating?

    I'm aware how to use SPWeb.ProcessBatchData, but for very large lists (10000+ items) it's still very slow if all you want to do is update every single item to have a particular value in one column, as you still have to walk the whole list to build
    a massive batch query that you then pass to ProcessBatchData, and the updates issued to SQL server are still much more expensive than needed.
    My question is why doesn't ProcessBatchData support query-based updating, where you include a <Where> clause as part of the batch query to indicate which items you want to update?

    Only SharePoint team can answer your question I think, but yes it would be better to have the query option, maybe. However, you can still do what you want but doing a little extra work - get all items IDs using the first SPQuery call (passing ViewFields
    with minimum fields, you many not need all fields, maybe title and ID) then prepare your xml for process batch.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • In dreamweaver site-wide query option file grayed out

    in dreamweaver site-wide query option file grayed out
    Why won't this button option work, I cannot get the site-wide query to highlight, please help anyone, thanks.

    You need to have a defined site in order for DW to correctly work with your files...
    http://tv.adobe.com/watch/learn-dreamweaver-cs5/gs01-defining-a-new-site/
    Once defined, you will always work from the Dreamweaver Files panel to ensure the program can manage your files correctly.

  • ORACLE 8I EXPORT의 QUERY OPTION 기능

    제품 : ORACLE SERVER
    작성날짜 : 2000-09-19
    Oracle 8i EXPORT의 Query Option 기능
    ====================================
    Oracle 8i에서는 export 작업 수행 시 Query Option을 이용하여 테이블의
    부분적인 추출이 가능하다.
    SQL> select empno, ename, job, sal from emp order by job;
    EMPNO ENAME JOB SAL
    7788 SCOTT ANALYST 3000
    7902 FORD ANALYST 3000
    9999 홍길동 ANALYST 2000
    7369 SMITH CLERK 800
    7876 ADAMS CLERK 1100
    7934 MILLER CLERK 1300
    7900 JAMES CLERK 950
    7566 JONES MANAGER 2975
    7782 CLARK MANAGER 2450
    7698 BLAKE MANAGER 2850
    7839 KING PRESIDENT 5000
    7499 ALLEN SALESMAN 1600
    7654 MARTIN SALESMAN 1250
    7844 TURNER SALESMAN 1500
    7521 WARD SALESMAN 1250
    위와 같이 구성된 EMP 테이블에서 만일 'MANAGER'로 JOB을 가진 사원중 SAL
    컬럼이 2500이상인 레코드를 export하고 싶다면, 다음과 같이 수행하면 된다.
    % exp scott/tiger tables=emp query=\"where job=\'MANAGER\' and sal\>=2500\"
    Export: Release 8.1.5.0.1 - Production on Tue Sep 19 16:14:15 2000
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 2 rows
    exported
    Export terminated successfully without warnings.
    한글 컬럼에 대해서도 동일한 where 조건에 지정이 가능하다.
    % exp scott/tiger tables=emp query=\"where ename like \'홍%\'\"
    V8.1.5 버젼에서 제공되는 Query 옵션의 특징:
    1. 테이블 레벨의 export 명령어에서만 가능하다.
    2. Direct 옵션과 함께 사용될 수 없다.
    3. Nested 테이블을 갖는 테이블에는 적용할 수 없다.
    4. Partition 테이블에 대한 export에도 적용가능하다.
    5. Import 명령에는 적용되지 않는다.

    Thanks Guys,
    I am still a bit lost though...
    It may be simply a matter of me finding Oracle 8i so I can do what I need to do.
    Where can I get Orcale 8i from? Does anybody have it? The oracle site only has a version back to 9.2 I queried with a employee from Oracle University here in Australia, and he suggested asking in the forums.
    Just so you know what I'm trying to do:
    Data Server:
    Running Aix with Oracle 7.14... actually could be 7.41 - I'll check today.
    This system will not be upgraded to any later version of Orcale, because systems are in place, and core systems at our other sites have to be the same. (my project is a local one)
    Web Server:
    Running XP profession with IIS and using ASP (active server pages)
    Currently running Oracle 10g, and ASP code connects to the local database on this machine via an ODBC connection.
    At the moment, I have scripts on the Aix server that dumps data from Oracle 7.x into a .csv file.
    Then, I have scripts that copy those csv files to the XP server, and they are imported to the local Oracle 10g database.
    To display this data on the website, I use ASP via the odbc connection to query the local database on the XP server.
    As said in my previous post, there must be an easier way to do this.
    I need a local database on the XP server too, and am thinking the best way is to downgrade to 8i.
    Can anybody tell me where I can get 8i to try this out? I have been trying to reasearch this for a while now without luck. Any help would be appreciated, and thanks for those who have replied so far.
    -Tom

  • Use of QUERY option in 9iRel2 Export utility

    Hi All,
    Is it possible to use a query option to the export utility of the form below assuming I am exporting a table called test1:
    query="(test1.col1,test1/col2) not in (select test2.col1,test2.col2 from test2)"
    I am not sure if it is allowed to reference another table in the query clause, test2 in the example above....?
    Thanks

    I don't have a 9iR2 environment with me right now but this works on 10gR2. And I have no reason to believe that it would not work in 9iR2.
    SQL> select * from a;
            ID
             1
             2
    SQL> select * from b;
            ID
             2
    SQL> $
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\>exp sysadm/itbagain@qo810 tables=(A) query='where id not in (select id from b)'
    Export: Release 10.2.0.4.0 - Production on Wed Sep 8 14:17:49 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.4.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table                              A          1 rows exported
    Export terminated successfully without warnings.
    C:\>

  • Customization forms display message Query options

    Is there any way to eliminate or change the message 'Query Options' in a report customization form?

    Query Options will appear in customization form if you have any bind variable set in the component's design time.
    If u dont want to have any query options,
    you can suppress them by redesigning the component without any bind variables.

  • ORACLE V7.1 PARALLEL QUERY OPTION(PQO) TEST

    제품 : ORACLE SERVER
    작성날짜 : 2004-08-13
    SCOPE
    8~10g Standard Edition 에서는 지원하지 않습니다.
    Subject: Oracle V7.1 PQO 테스트 결과
    1.테스트 장비 : Sequent2000-S750
    512MB M/M, 16GB H/D, 20 CPUs
    2.테스트 S/W : Oracle V7.1.1 Beta (Parallel Query Option)
    3.DB file구성 : 10개의 hard disk를 strapping raw device로 구성
    data tablespace : 1.9 GB
    4.Data Load : 2개의 테이블 사용(5KB , 1MB)
    5.테스트 결과.
    - Sort Merge Join (Default SQL: using 1 CPU) : 6m21s - 6m33s
    * Sort Merge Join (Parallel 20 option: using 20 CPU) : 0m59s
    * Parallel index create (1Mega table) : 1m18s - 1m28s
    - Nested Loop Join (Default SQL: using 1 CPU) : 1m15s - 1m23s
    * Nested Loop Join (Parallel 20 option: using 20 CPU) : 0m02s - 0m03s
    - Execute PL/SQL procedure (Default SQL: using 1 CPU) : 1m54s
    (embeded compiled PL/SQL procedure : user define function)
    * Execute PL/SQL procedure (Parallel option : 20 CPU) : 0m13s
    (embeded compiled PL/SQL procedure : user define function)
    결과적으로 SQL문의 종류에 따라 7배 - 40배 정도의 성능 향상을 보여줌.
    6. 본사에서 recommand한 자료에 의하면 18배 이상의 성능 향상 을 얘기하는데
    이결과는 테스트 장비 구성의 차이라고 할 수 있습니다.
    본사 테스트 장비 : Sequent5000 model, 1GB M/M, Pentium CPU, 20 H/Ds
    cab로서 장비 구성요소 만으로도 2.5배 이상의 성능의 효과가 기대되는 상황.

    Can you try running the following query and see if parallelism is used. I have used table alias "a" and included that in the parallel hint
    select /*+ parallel(a, 8) */
    colA,
    colB
    from abc.mytable a
    where my_date between to_date('01/01/2011','mm/dd/yyyy') and to_date('12/31/2011','mm/dd/yyyy') AND
    CD = '35';
    Thanks

  • EXPORT 시 QUERY OPTION에 대한 사용 예(ORACLE 8I 이상)

    제품 : ORACLE SERVER
    작성날짜 : 2004-03-17
    EXPORT 시 QUERY OPTION에 대한 사용 예(ORACLE 8I 이상)
    ============================================
    PURPOSE
    ============
    oracle 8i에서 export 시 query option에 대한 사용 예
    8i에서 export의 query syntax 를 이용하여 table data의 한 부분만 exporting 이 가능
    - 8i 에서 select 문장의 where 절을 사용하는 것처럼 export 시에 부분적으로 table data 를 받아 낼수 있는 기능을 소개 한다.
    - Direct 옵션은 사용될 수 없다..
    - where 절에 해당하는 export utility는 query parameter 를 사용한다.
    UNIX syntax:
    - Example:
    1.SCOTT.Emp table의 ename 이 JAME과 비슷한 이름의 data 를 export ..
    exp scott/tiger query=\"where ename like \'JAME%\'\" tables=emp file=exp.dmp log=exp.log
    2. employee와 cust table에서 new york 주의 data 만 export ..
    exp scott/tiger query=\"where st=\'NY\'\" tables=(employee,cust) file=exp.dmp log=exp.log
    query 문장에서 UNIX reserved characters( ", ', ,< .. 등) 를 사용하는 경우에는 escape ('\') 을 반드시 사용해야 한다.
    예)query=\"where JOB = \'SALESMAN\' and salary \< 1600\"
    더 중요한 것은 command line에서 export option을 사용할때는 반드시 escape 이 있어야 하나
    parfile을 사용할때는 eacape이 불필요하다.
    예를 보면 .. p라는 이름의 file을 다음과 같이 생성
    tables=emp query="where job='SALESMAN'"
    parfile을 이용해서 export 를 실행해 보면
    [rmtdchp6]/apac/rdbms/64bit/app/oracle/product/9.2.0> exp scott/tiger parfile=p
    Export: Release 9.2.0.4.0 - Production on Wed Mar 17 00:12:34 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses KO16KSC5601 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 4 rows exported
    와 같이 정상 처리 됨을 알수 있다.
    만일 command line에서 위의 내용을 실행하게 되면 다음과 같이 error 를 만난다.
    exp scott/tiger tables=emp query="where job='SALESMAN'"
    LRM-00101: unknown parameter name 'job'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    command line에는 query 내에 single(')나 double quotes(") 를 사용한다면 반드시 double quotes(") 를 사용하여
    query 문을 묶어야 한다.그러나 query 내에서 single ('')나 double quotes(") 를 사용하지 않는다면 single quotes (')을 사용하여
    query 문을 수행할 수도 있다..
    다음 예를 보면..
    1>exp scott/tiger tables=emp query=\'where deptno=20\'
    Export: Release 9.2.0.4.0 - Production on Wed Mar 17 00:22:00 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses KO16KSC5601 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 4 rows exported
    2>exp scott/tiger tables=emp query=\'where job=\'SALESMAN\'\'
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    즉.. 정리를 하자면
    command line에서 query 내에 '," 을사용하지 않는 다면 '나 " 으로 query option을 사용할수 있다
    query=\'where deptno = 20\'
    query=\"where deptno = 20\"
    query=\'where deptno \< 2\'
    (이 경우 single 이나 double quotes 을 둘다 사용할수 있다.)
    parfile을 사용하는 경우에는 다음과 같이 단순하게 사용이 가능하다.
    query='where deptno = 20'
    query="where deptno = 20"
    query='where deptno < 20'
    WINDOWS NT / 2000 와 NETWARE syntax:
    다음의 자료를 참조바란다.
    Example:
    EXP demo/demo tables=emp file=exp1.dmp query="""where deptno>30"""
    double quotes(") 를 둘러 싸는 경우에는 space 가있으면 안된다.
    parfile의 사용은 다음과 같이 하시면 됩니다.
    file=exp66.dmp
    query="where deptno > 20"
    tables=(emp)
    log=log66.txt
    userid=scott/tiger
    Explanation
    Windows NT or Win2000의 경우 command line에서는 3 double quotes 이 필요하고
    'PARFILE 을 사용하는 경우에는 double quotes(") 한번만 필요함
    Reference Documents
    Oracle8i Utilities guide
    Note:91864.1

  • Alternative querying options at BI

    Hello all!,
    Could you help me giving some information, links, notes, about alternative querying options at BI infoCubes. FYI: I don't want to use Query Designer o Web Application Designer or BEx Analyzer via excel based reports.
    Thanks in advance and best regards
    Bernardo

    With BI 7.0 there is an option of native Excel 2007 access. 
    The SAP Business Objects tools can access BW - Crystal Reports, Web Intelligence, Voyager, and is SAP's future direction, replacing Analyzer and Web Qery Designer.
    Other 3rd party tools that should have decent OLAP capabilities.
    Actuate http://www.actuate.com/home/index.asp
    Cognos http://www.cognos.com/olap.html
    MS Analysis Services
    ArcPlan  http://www.arcplan.com/home.cfm
    NovaView (I'd include this one in any evaluation) http://www.panorama.com/

  • The Report Designer does not support this query drill down colum

    Iam working On BI7 When iam doing report desingner when iam opening query through data provider
    Iam getting thsi error The Report Designer does not support this query drill down colum colum axis may contain one structure only remove additional dimensions
    I modify the cube and i remove some dimensions also My problem is when iam putting characterstics in Colums Iam getting this error When iam removing that charcterstics from colums it was not throuing any error
    Chaitanya

    hi,
    report designer is for front end view design and the designcan be done with restriction to navigation.
    you have dynamic and static report designs with restricted navigations.
    chk the links for document
    http://help.sap.com/saphelp_nw04s/helpdata/en/dd/cea14119eb9f09e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/17/16d941de405f24e10000000a1550b0/frameset.htm
    Ramesh

Maybe you are looking for

  • Add User to Group Behavior

    Hi all I found this post that explains the same issue I'm having, but the marked answer isn't relevant to my environment. I've built a user creation runbook, using 2012 R2 and this Active Directory Integration Pack. Everything works properly, except

  • 10 thousand dissapeared photos... where could they be? Please help.

    After my son was on the computer he informed me that all the photos had dissapeared from i photo. ( he was trying to find a photo). He assures me that he did nothing unusual, but i just cant find them. My friend has recovered some, but she has now go

  • Printer Driver: Is it Better to Use Software Update? Or the Manufacture's?

    Hi. Which is better: the driver from the manufacturer's or the one that software update installs? Thank you in advance. Gbu

  • Photo stream not being deleted on iMac

    When I delete a picture on OS devices photostream it is being deleted on all devices EXCEPT on my imac photostream. Photostream is enabled on iMac using Mavericks.  Any ideas??? thanks

  • PrintStream Problem, please help!

    My goal is to create and print to a file. The program will create the file but won't print to it. I can't find anything wrong, please take look and help if you can. import java.io.*; import java.awt.*; import javax.swing.*; import java.awt.event.*; i