Query options for OData service

Hi,
I am able to  create an OData service and using SDK, I am able to read the data from the connected database. Now I have to fetch data based on queries. I mean from the database table I have to fetch subset of data based on conditions. I have checked the documnetations
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0efbaca-45ba-3010-b7bb-8c1c5aa109ab?QuickLink=index&overridelayout=true&58475979909212
Other than setting up the Netweaver gateway, is it possible to achieve it through  GWPA(eclipse plugin). I am using the kepler version of eclipse. Could you please share the documents related to this topic?

Hi Jitendra,
I have developed ios/android applications using SAP Mobile Platform SDK 3.0 SP06.
1) MAFLogin is successful
2) Store initialize is successful
Now I have to fetch subset of data from the database table based on some conditions.
Could you please help to clarify the below queries?
1) Is it possible using eclipse plugins?
2)  Can we achieve this feature only through Functional import feature using SAP NetWeaver Gateway Service Builder?

Similar Messages

  • Does Verizon not have a live chat option for customer service?  or a phone number?   I'm having a heck of a time trying to find how I can contact them

    Does Verizon not have a live chat option for customer service?  or a phone number?   I'm having a heck of a time trying to find how I can contact them

    As taken directly from the VerizonWireless website.
    (and I am not a chat or customer service agent, I just hang around here too much)
    CHAT:  Contact Us | Verizon Wireless
    Customer Service
    (800) 922-0204
    or dial *611 from your mobile phone
    View the *611 On-Screen App for Android Video
    6 AM - 11 PM, Mon - Sun

  • Testing tools for OData services

    Hi all,
    I managed to get my oData services up and running on my local/Cloud HANA server, using Olingo libraries and JPA.
    Now I'd like to test my services. I can test the queries from the browser and from multiple clients found on the web.
    However PUT/POST requests require to type in manually the body, and this is really time-consuming.
    As a consequence, I'm looking for any tool which could generate POST/PUT request body for oData (much like XMLSpy/soapUI does for SOAP)
    There is no SAP NW Gateway in my landscape so it is not an option, I'd like a desktop tool or browser plugin
    Does anyone know whether such a tool exists?
    Thanks, Regards
    Vincenzo

    Hi Vicenzo,
    you can use the Chrome plugin Postman REST Client. There are two versions available, an extension and a packaged app. I've installed both, but only the extension is able to use the authentication cookie. Thus the packaged app is not suitable if you want to test service which require authentication.
    Regards, Mathias
    Message was edited by: Mathias Boettcher

  • External Alias for ODATA Service

    Hi,
    yesterday I tried to add an external alias for an OData service (TC: SICF), but I always got an 500 error after calling the service:
    500 SAP Internal Server Error
    ERROR: URI-Verarbeitung - statischer Pfad in Konflikt mit URI (termination: RABAX_STATE)
    Can someone help me solve this Problem?
    Thanks a lot!
    Stefan

    Hi Stefan,
    as per sap help ICF Services - SAP Documentation,
    The ICF standard function of external aliases is also available for SAP NetWeaver Gateway for the Standard Mode, that is, for ICF node /sap/opu/odata. Thus you can define an external alias for your service if you have registered class/IWFND/CL_SODATA_HTTP_HANDLER as handler in the Handler List for your service node.
    so have you registered class/IWFND/CL_SODATA_HTTP_HANDLER ?
    Regards,
    Chandra

  • X-Path like Query option for XMLModel?

    Hi,
    is there an option to use x-path-like queries in the XMLModel?
    E.g.
    <?xml version="1.0" encoding="UTF-8"?>   
    <main> 
                             <config> 
                                        <mode>1</mode>  
                                        <ext> 
                                            <item date="January 2009">                                         
                                            <unit>900</unit> 
                                            <current>1</current>  
                                            <interactive>1</interactive> 
                                            </item> 
                                       </ext> 
                             </config>  
                              <config> 
                                         <mode>2</mode>   
                                        <ext> 
                                               <item date="February 2009">                                      
                                            <unit>400</unit>   
                                            <current>2</current>  
                                            <interactive>5</interactive>   
                                             </item> 
                                       </ext> 
                           </config>  
    </main> 
    and
    var oTable2 = new sap.ui.table.Table();   
    oTable2.bindRows("/config['mode='1'']/ext"); 
    to select a node directly?
    The source is from an old Post [SAPUI5 - XMLModel]  Xpath filter ? where the solution was to loop through the result.
    Does SAPUI support X-Path like queries in the meantime?
    Thanks,
    Oliver

    I'm not sure about an xpath query (which was deprecated in JCR 2.0), but here's how you could use the JCR API to retrieve all of the versions from a path:
         * Returns all of the versions at the specified path as a List of Versions.
         * @param session
         *            the currect JCR session, must not be null
         * @param path
         *            the absolute path of the node to retrieve
         * @return the list of versions at the specified path
         * @throws UnsupportedRepositoryOperationException
         *             thrown if the node at the specified path is not versionable
         * @throws RepositoryException
         *             an unexpected exception occurs interacting with the JCR
         *             repository
        public List<javax.jcr.version.Version> getVersions(final Session session,
            final String path) throws UnsupportedRepositoryOperationException,
            RepositoryException {
        final List<Version> versions = new ArrayList<Version>();
        final VersionManager versionMgr = session.getWorkspace()
            .getVersionManager();
        final VersionHistory versionHistory = versionMgr
            .getVersionHistory(path);
        final VersionIterator versionIterator = versionHistory.getAllVersions();
        while (versionIterator.hasNext()) {
            versions.add(versionIterator.nextVersion());
        return versions;

  • Options for managed service providers

    Hi! I work for a managed service provider. We currently use Zenith to manage alerting and status reports for our myriad managed Windows servers. We are looking for a software solution to help monitor Mac servers in a similar way.
    Our requirements are that we want it to work with computers at multiple WAN sites (the company networks that we manage for our clients), without a VPN connection, and securely (over SSL would be nice.)
    Value add items would be the ability to remote connect to the desktop, patch management, and log aggregation.
    I can build a lot of this functionality, but it would be more cost affective to use commercially available software, if it exists.

    Start with rummaging around for information on [Nagios|http://www.nagios.org] and [Lithium|http://lithium5.com>, as a first-blush open-source and commercial offerings here, and also as potential search targets.
    Mac OS X includes remote desktop access and patch management and related offerings either directly, or as part of Mac OS X Server product.

  • Query Option for planning

    Hi All,
    I have created a real time cube for planning.
    But when i am creating query on that cube the properties of planning are not in change mode.
    Can anybody please tell me why is it so? & how to make it in change mode?
    Regards
    SM

    Hi,
    If you are working with Integarted Planning in BI 7.0,
    first Create Real Time Infocube  in RSA1
    Then Goto - Tcode- RSPLAN -  click on Start Modeler for manual Planning.
    This will take you to the planning modeler, which is web based.
    You can find five tabs,
    Infoprovider
    Aggregation Level
    Filters
    Planning Functions
    Planhning Sequence.
    Under Infoprovider Tab,
    Select the infoprovide on whcih you are planning
    Goto- Aggregation Level Tab,
    Note: Aggregation level is the virtual infoprovider or a subset of your infoprovider that you have selected under the inforprovisdr tab.
    Create Aggregation level by clicking on create button.
    Then select the charaterisitcs and keyfigures that you are planning on.
    Then check the defination of the aggregation level
    Activate the aggregation level.
    For creating Aggregation level, you need first select the infoprovider on which you will be planning.
    With Regards,
    PCR

  • Signal Booster Options for poor service signal in home

    The new home I am moving to gets really poor signal (seems to be just in the yard and house ~3 acres) everywhere around home gets signal. What would be a good signal booster option so I can get calls in my home? Zipcode 56759

    At this moment, I believe your only option is the network extender, which is currently a Samsung model. You would hook this up to your home internet connection. Limitations are it is only 3G and not LTE.
    Future, Verizon has said they will be releasing an LTE network extender. Also Verizon announced in the fall of 2014 they will support wifi calling with supported phones sometime in 2015. Both are still not concrete on dates, so I would not count on them right now. Just be aware that if you get the 3G network extender, it will be obsolete in less than a year.

  • "Options for Selected Service" greyed out.

    Help! I need to change QMaster from working with 1 processor to 4, but the option to change it is greyed out.
    FCP 5.1.4 on Leopard (10.5.2)

    Hi Zebra,
    I noticed you where using FCP 5.
    Make sure Qmaster 2 is updated by the way. But to reassure you of your question, they have corrected? this in FCP 6 with Qmaster 3.
    However, if you open your "Activity Monitor" under your Utilties folder in your Application folder, you will find when you double click on the processor window it will maximize and show all processors activities. You should see if Qmaster is running right, all processors working anyway.
    Not sure, why they grayed out 2.3.1, and opened it up in 3.
    There are theories, on the net as well as legitimate testing that describes processor to ram ratios.
    FCP (Compressor) runs better on a 8 core system with 4 cores("instances" in Qmaster Prefs) than all 8 running.
    Try this link to see.
    http://www.barefeats.com/octopro5.html
    BUT in your situation, you are fine. There are some ways I believe in Qmaster 2.3.1 to change the scripting to adjust processor distribution, but thats beyond me.

  • Can't see pricing options for Creative Cloud. :'(

    Two things, Adobe:
    1. When I try to click the "See All Plans" button on this page (Cloud-based software and services for creatives | Adobe Creative Cloud) I'm taken to a blank page (except for the unhelpful footer). The error console on my browser says there are a couple of errors, which are usually where this comes from.
    plans:237 -- ReferenceError: Can't find variable: s
    test_and_target.js:1:132 -- ReferenceError: Can't find variable: mboxDefine
    I would love to see the pricing options for this service that you've built into all of your applications, but apparently I can't.
    2. Apparently the forum is the only way to tell you guys about technical problems?

    Hi ChristofferLu,
    Please refer the knowledge base article: http://helpx.adobe.com/creative-cloud/help/cc-desktop-download-error.html.
    Regards,
    Romit Sinha

  • WCF OData Service stored procedure call generates "Operation could destabilize the runtime" error with $select option

    I've been trying to call a stored procedure through Entity Framework and WCF Data Services (OData). It returns an entity not a complex type. Following walkthroughs found all over the web, I came up with this code inside my service:
    [WebGet]
    public IQueryable<Entity> GetEntitiesByParameterId(int parameterId)
    return CurrentDataSource.GetEntitiesByParameterId(parameterId).AsQueryable();
    Calling the proc this way: ~WcfService.svc/GetEntitiesByParameterId?parameterId=1 executes
    the stored procedure and returns entities that should be returned. No problem there.
    Everything works well until I try to use $select OData option ie. ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name.
    Upon debugging, the method above runs without any error but it returns an Operation could destabilize the runtime error upon reaching the
    client. After so much research, apparently it is a very general error pointing to a lot of different causes. I haven't found one that really matches my particular problem. Closest are 
    http://stackoverflow.com/questions/378895/operation-could-destabilize-the-runtime
    https://social.msdn.microsoft.com/Forums/en-US/d2fb4767-dc09-4879-a62a-5b2ce96c4465/for-some-columns-entity-properties-executestorequery-failed-with-error-operation-could?forum=adodotnetdataservices 
    but none of the solutions worked on my end.
    Also, from the second article above:
    This is a known limitation of WCF DS. ...
    Second is that some of the queries won't work correctly because LINQ to EF needs little different LINQ expressions than LINQ to Objects in some cases. Which is the problem you're seeing.
    It has been posted on 2012. If it its true, are there still no updates on this? And is there any other workaround to get the $select working on the stored proc call?
    What works:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$top=1
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$skip-5
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$filter={filter query}
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$expand=SomeNavigationProperty
    What doesn't work:
    ~WcfService.svc/GetEntitiesByParameterId?parameterId=1&$select=name
    Tech details:
    EntityFramework 5, WCF Data Service 5.0, OData V3
    *I've also tried upgrading to EF6 and WCF 5.6.2 and it still didn't work.
    Any help would be appreciated. Thanks!

    Someone from SO replied to my question there and said that $select is still not supported though I couldn't find any definitive documentation about it.
    From what I gather and observed, $select breaks the stored procedure call because it tries to alter the data shape already gotten from the database and attempts to return a dynamic entity instead. Something about the stored proc returning an ObjectResult might
    be messing it up. As I have said, these are merely my observations.
    Workaround: I found a simple and elegant workaround for it though. Since my stored procedures are only getting data from the database and does
    not alter data in any way (INSERT, UPDATE, DELETE), I tried using table-valued functions that returns a table equivalent to the entity on my EF. I've found that calling this function on the Service Operation method returns an IQueryable<Entity> which
    is basically what is needed. $select also works now and so does other OData query options.
    Steps:
    Create a function on the database
    Update EDMX -> Add function
    Add new Function Import with Entity return type
    Create service operation in WCF Data Service that calls CurrentDataSource.<FunctionName>()
    Test in fiddler.
    CODES
    Database Function:
    CREATE FUNCTION GetEntities(@parameter)
    RETURN @entites TABLE(
    [Id] [int],
    [Name] [nvarchar](100),
    AS
    BEGIN
    INSERT INTO @entities
    SELECT [Id], [Name], ... FROM [EntityTable]
    RETURN
    END
    WCF:
    [WebGet]
    public IQueryable<Entity> GetEntity(int parameter)
    return CurrentDataSource.GetEntity(parameter);
    It doesn't really solve the stored procedure problem but I'm marking this as answer until someone can provide a better one as it does solve what I'm trying to do.
    Hope this helps others too. :)

  • 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

  • Response options for POST method in Restufl services?

    I am using the Restful services for the Oracle Cloud Database and I am trying to see what my options are for returning responses from my POST calls but haven't had any luck. It doesnt seem that using dbms_output.put_line() is respected for returning information in the body of the response and I havent had any luck with OUT parameters. Obviously GETs work fine returning the selected dataset, but I can't figure out what to do for POSTs. Can someone give me a quick simple, PL/SQL hello world example of returning data (body or header, either is fine) for the REST APIs?
    Edited by: 1003431 on Apr 30, 2013 3:56 PM

    user588066 wrote:
    Thank you for your response,
    I constructed HTML data in different ways, but in all cases I am getting 200(OK) response. But nothing is happening As I mentioned, you must not construct HTML for a POST.
    A POST consists of two basic parts. A header part. A data part.
    The POST that you need to create, should look something as follows:
    POST /servlet/servlet.WebToLead HTTP/1.1
    Host: www.salesforce.com
    User-Agent: Mozilla/4.0
    Content-Length: <number>
    Content-Type: application/x-www-form-urlencoded
    oid=00D400000008XSQ&first_name=Scott&last_name=Tiger&email=[email protected] header part contains the standard HTTP header information - such as the size, content type and so on.
    The data part contains what a query string for a GET command typically would contain. Name-value pairs, separated by the ampersand character, and control characters encoded where needed.
    I suggest that you use your favourite search engine and research the topic of what the content and structure is for a http POST - and once you understand that, put some PL/SQL code together to create such a structure. And make that simplistic first so it is easy to debug and test - before tackling a more complex POST using https in addition too.

  • 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

  • NO CUSTOMER SERVICE OPTIONS FOR THE DEAF!

    I have been trying to get information on the Visa gift card I was sent. I placed an order online with Staples. AFTER the order was placed, I received an email saying they apologize, but the tablet is not in stock. The CSR at Staples claimed that my Visa card was not charged. However, when I took a look, the money had, in fact, been removed from the account. I was told to call the number on the back of the card, which is what I did or TRIED TO DO. The relay operator dialed, listened all the way through, then came back and said THERE IS NO OPTION FOR A LIVE CUSTOMER SERVICE REPRESENTATIVE. None. Also, when you enter the requested information like the tracking number, etc. you get your current balance, then you are cut off.
    This is the type of thing that I abhore about Verizon. I want to know why they still have that charge listed on the card! Why is it necessary for it to remain there forever? As long as it is listed, I CANNOT MAKE ANOTHER PURCHASE. The tablet I ordered was $330.00, which took up almost the entire balance of the $400 Visa card. How in the heck is a hearing impaired person supposed to get any help if you do not provide the necessary services? It's as if you seem to think WE DO NOT EXIST! Why tie up those funds for days and days so that nothing else can be ordered?
     I pay my bill on time EVERY MONTH! If I said to you it would take 3-5 days for me to make the payment past the due day, would you wait before cutting off my service? I don't think so. So why would you tie up the funds on my card, because you can't keep the accounts up to date? How much longer do I have to wait?????

    1. This is a peer-to-peer support forum. If you want to get a message to Verizon, you should contact them directly via one of the options on their Contact Us page.
    2. I would assume the number on the card goes to a VISA support line, not Verizon. Verizon doesn't own the card, they just give them out.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

Maybe you are looking for

  • Specifying a circle with 2 mouse presses

    Hi, I'm trying to create an applet that allows the user to specify a circle with 2 mouse presses. I'd like the 1st point to represent the circle's centre and the 2nd to be any point on the periphery. Creating a mouse press event handler is a given ob

  • Base Value 03 = Replacement Value

    Hi, I would like to know what does this base value 03 = Replacement Value. We always use 01 & 24 for Acquisition & Net Book value respectively. This can be found in the Multilevel method. Appreciate your answers. rgds, jay

  • ECC 6.0 Production version ...issue

    Recently,we have installed ECC 6.0 prduction version . I have logged in as 000 client with username:sap* and password: 06071992. However, all the modules icons  are visible but not the content. I am not able to access any of the modules at all, excep

  • Problem in adding rows in a table

    Hello All , I am having a strange problem in adding table rows here . All things seems to be in place . But when i click the button nothing happens . I have worked on much more complex tables and added rows safely but i cant understand what's happeni

  • No matter what I do, all my PDFs come out as RGB, instead of CMYK.

    I am running Quark 6.5 with Acrobat version 4.0 Professional's PDFwriter on a PC, under Windows XP. I can only pake PDFs from my Print menu, by selecting, Adobe PDFwriter, AdobePS Acrobat Distiller or Adobe PDF Converter. When I attempt to use Export