Creating OData Service Issue on AppBuilder ?

HI Experts,
I have an error when i'm trying to create a New OData Service in AppBuilder.
Here is the Response getting from Browser using this link
And in the AppBuilder i'm getting this HTTP Error Now.
Yesterday i worked on same Service it works, But Now i getting HTTP request failed,
Here is the Yesterdays Service Response
How can solve this Issue ?
thanks in advance,
Vamsi K.

Hi Vamsi,
Please check if there is any proxy enabled / to be enabled
I just tried with the northwind service and was successful.
-virinchy

Similar Messages

  • Create oData service using oracle Store procedure

    Hello Experts,
    I need to create oData service from oracle store procedure,
    what are the steps to do it.
    We are using SMP Integration gateway.
    Please Suggest.
    Regards
    Manish

    Hello Experts,
    Here is my code to join 2 tables , in debug it does not give error, but it gives on only one table output not merged output.
    Please suggest.
    function processRequestSQL(message) {
      //Import statements
      importPackage(com.sap.gateway.ip.core.customdev.util);
      importPackage(java.util);
      importPackage(org.apache.olingo.odata2.api.edm);
      importPackage(com.sap.gateway.core.ip.component.commons);
      importPackage(org.apache.olingo.odata2.api.uri);
      importPackage(com.sap.gateway.ip.core.customdev.logging);
      //Get the SQL statement contained in message body
      var sqlStatement = message.getBody();
      var uriInfo = message.getHeaders().get(ODataExchangeHeaderProperty.UriInfo.toString());
      var map = new HashMap();
      map = uriInfo.getCustomQueryOptions();
      //Create the query and sub query
      var JOIN_WO_WHERE = "INNER JOIN ZONE ON AREA.AREA_ID = ZONE.AREA_ID ";
      var WHERE = " WHERE ";
      var JOIN = " INNER JOIN ZONE ON AREA.AREA_ID = ZONE.AREA_ID ";
      //Modify the SQL statement
      var modifiedSqlStatement = "";
      var entitySet = uriInfo.getStartEntitySet();
      var odataMethod = message.getHeaders().get(ODataExchangeHeaderProperty.ODataMethod.toString());
      modifiedSqlStatement += sqlStatement;
      if (odataMethod.toString() == "GET_FEED") {
      entitySetName = entitySet.getName();
      if (entitySetName == "AREA") {
      if (sqlStatement.indexOf("WHERE") != -1
      || sqlStatement.indexOf("where") != -1) {
      modifiedSqlStatement += JOIN_WO_WHERE;
      } else {
      // modifiedSqlStatement += WHERE;
      modifiedSqlStatement += JOIN;
      //Set the message body back with the modified SQL statement
      message.setBody(modifiedSqlStatement);
      //Logger
      log.logErrors(LogMessage.TechnicalError, "This is first log");
      //Set the message body back with the modified SQL statement
      message.setBody(modifiedSqlStatement);
      //Logger
      log.logErrors(LogMessage.TechnicalError, "This is first log");
    -------------------End Sample Implementation---------------------------------------
      return message;

  • AppBuilder:create oData service

    Hi
    I have an error when I am trying to create a new odata service in appbuilder.
    As you can see below
    I enter the name of my database in the field of name and
    in the field of URL I put the URL that appears when I click on "open service document" in Gateway Management Cockpit, which is http://localhost:8080/gateway/odata/sap/intgwtest;v=1
    But when I press confirm an error message appears:
    How can I solve my problem?
    thank you in advance
    Angeliki

    SAP AppBuilder is a browser-based application development tool for developers to easily build HTML5/JavaScript mobile applications.
    I have an error when I am trying to create a new odata service in appbuilder.
    As far as i know App builder can only consume Odata services to quickly develop few applications. but not to develop Odata services.
    --> If you are working to consume the services with Appbuilder - Please try the opening the URL in the browser to check if any data / metadata is retrieved .

  • HANA odata service issue

    Hi,
    I've created at basic odata service on my AWS HANA Instance but I'm having issues when testing in the browser.
    Whenever I add the parameter "inlinecount=allpages" as a parameter to the service call I get the error -
    400 Bad Request Error - "Service exception: column store error."
    e.g. http://<hanaserver>:8000/com/kringas/temperature/services/tempService.xsodata/StationDetails?$top=3&$format=json&$inlinecount=allpages
    If I remove the parameter or have it set to "inlinecount=none" the service works correctly, returning the expected results.
    e.g. http://<hanaserver>:8000/com/kringas/temperature/services/tempService.xsodata/StationDetails?$top=3&$format=json&$inlinecount=none
    The reason I need it to work with the "inlinecount=allpages" set is the SAPUI5 app where I'm trying to bind the odata service to a table seems to append this parameter to the service call.
    Thanks,
    Stephen

    &$count=allpages works but
    $inlinecount=allpages gives the below error :
    <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
    <code/> 
    <message xml:lang="en-US">
    Service exception: column store error. 
    </message>
    </error>
    I have the exact same situation that since it is internally placed by UI5 API.
    Were you able to find the solution / work around for that ?

  • Classic mode of creating Odata services

    Hi,
    Am new to Odata service and was given a requirement to create notification using Odata service. Our system doesnot support SEGW. Please help me with steps how we can create Odata using classes/methods and how we register the service. Please share a example. However searching on google for more info.
    Regards,
    Vikram.

    Hi,
    Refer How To Write an OData Channel Gateway Service. Part 1 - The Model Provider Class and How to Write an OData Channel Gateway Service. Part 2 - The Runtime Data Provider Class
    Regards,
    Chandra

  • Creating odata service

    Hello,
    We are creating an oData service importing a RFC.
    According to RFC, we need to pass some input parameters of one of the output tables, and we use another output table which eventually gets the data list after execution.
    Kindly advice, how can we build a OData service following the same.
    Thanks & Regards
    Ajay

    Thank you I have created O data Service but when I try to generate results I am getting the following error:
    1. I have generated O data Service on MDX query
    2. from gateway if generate output (/sap/opu/odata/sap/Z_TEST_1_SRV/E0IC_C03_0IC_C03_Q0031Results)
    It is giving me following error Kindly advice
    <?xml version="1.0" encoding="utf-8" ?>
    - <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> 
    <code>BRAINOLAPAPI/100</code>  
    <message xml:lang="en">Invalid MDX command with ON</message>  
    - <innererror> 
    <transactionid>7135F6E36BE9F125A022000C294D5782</transactionid>  
    - <errordetails> 
    - <errordetail> 
    <code>BRAINOLAPAPI/100</code>  
    <message>Invalid MDX command with ON</message>  
    <propertyref />  
    <severity>error</severity>  
    </errordetail>
    - <errordetail> 
    <code>/IWBEP/CX_MGW_BUSI_EXCEPTION</code>  
    <message>No exception text available</message>  
    <propertyref />  
    <severity>error</severity>  
    </errordetail>
    </errordetails>
    </innererror>
    </error>

  • How to get nested JSON structure from OData service result

    Hi all,
    This is what I have done :
    I have developed OData service where I am following below steps :
    1. Created Stored procedure for the logic
    2. Created scripted calculation view and call stored procedure from the view.
    3. Created OData Service where I am calling calculation view with multiple parameters.
    Every thing is working fine and I am getting proper JSON Result which all the attributes that I am returning from the view in flatten structure.
    Additional requirement:
    On top of this I have additional requirement where I want to get various aggregation or counts.
    For example : from view I am getting all the customers result as result set and I also want some summary level information along with that such as :
    1. Total Number of Records
    2. Total VIP Customers
    3. Total Individual Customers
    4. Total Business Customers
    Above counts can not be each records level information so I need this details in my OData Service result as separate summary section like nested JSON structure.
    For example :
    d: {
    results: [
    __metadata: {
    uri: "http://servername:8000/testmulti.xsodata/calmultiview1('123456')",
    type: "Cust.Multiview1.calmultiview1Type"
    aggregation: {
    totalrecords: "",
    totalVIPCustomers: "",
    totalIndividualCustomers:"",
    totalbusinesscutomers:""
    ID: "123456",
    ENT_ID: 1234,
    FIRST_NM: "ABC",
    LAST_NM: "XYZ",
    CITY: "DELHI",
    In above example like _metadata , I am asking how to get aggregation section also in the JSON result?
    aggregation: {
    totalrecords: "",
    totalVIPCustomers: "",
    totalIndividualCustomers:"",
    totalbusinesscutomers:""
    Please suggest best possible way to implement this kind of requirements.
    Thanks
    - Dharmesh

    Don't expect that OData can help you for this. Still you can try the following.
    Create a XSJS service where you can execute your procedure manually and get the aggregation as well. From the XSJS , you can loop over the result sets and build your corresponding JSON format. But, you can not implement the features of OData, as the return would be "just" a JSON.
    in any way you can establish an association with your main entity and aggregation entity(I am Sure, the worst case), you can get both in the same payload.
    Sreehari

  • User status for Service Issue{for particular Sales order} in CRM

    Hi Experts,
    I've an issue related to the User status in CRM.
    I've a Sales Order and I'm creating a service issue for it in CRM.
    For the service issue number has some user status and I want to know from where it is coming.
    Is there any configuration involved in it, or is it coming from the standard coding part.
    Please let me know how to find the user status for a service issue.
    Thanks
    Subbu

    Thank you PePe,
    I'm asking about the user status not the system status.
    The user status has only the values{open, worked & closed}.
    now for a service issue if it is rejected then the user status are automatically changed into "Closed".
    So if you have any idea in this please help me.
    thanks
    Subbu

  • Listview and details with Appbuilder (OData Service)

    Hi,
    I try to create an app with appbuilder, which shows me a list of items, and if i click one item in the list, i get to a new site and see the details.
    For this i created an OData service, which works and is available in my browser.
    Then I startet to create the app in the appbuilder. I followed the steps in this tutorial http://www.youtube.com/watch?v=iC3x7P5Cu1g
    I added the ODataService in the DataSource, and added a ODataQuery for the details. After this I created a new SuperList with two sites, one for the complete list, and one for the detailed view. It all seems to work. I see the list with all my items and i can click on one item, to get to the detailed view. But there I see nothing. The fields of the detailview are empty, and I don't know why.
    If I confirm my ODataQuery (with the button in the DataSource section) i get all the data i want, but the view is empty.
    The only differents between my app and the app in the video is, that in the video the query uses the filter function (<url>...?$filter=...). This returns a table with one entry. I use an own OData service with the parameter. The service returns a structure, no table. Could this be the problem?
    How can I fix this (hopefully without changing the OData Service..)
    Thanks and Regards
    Jens

    Its quarterly billing, and on direct debit, so the whole point there is it takes care of itself. 
    It aso didnt hurt that as I said, I had no communication from BT in that year, no calls, emails, texts, letters nothing. They sent me no letter to say that there had been a missed payment, they took no action due to this, still something at this point that no one has been able to explain how that happened. Also the direct debit was set up by someon from their executive level complaints deaprtment, so you would think it would work ok. But apparantly 3 months later they didnt take a payment, and kept not taking payments or getting in touch with me about it, they just did notning. Then after a year, again without any warning or notification restricted my line, which as it turnds out was an automatic process, no one had any clue about what had been going on. Hence why the first manager I spoke to about it said she was going to have to investigate how this happened and obviously work out a repaymnt package. Though as par for the course from that point on I never received a callback from BT at any point, I called them often enough, but they never could be bothered it seemed to get back in touch.
    Also my bills arent exaclty large, as I say the only reason I even have a landline is for my internet access for work so its not as if its a huge amount and its every 3 months so not something really on your radar. Again thats the point of DD and what you assume is a professional and capapble company. 

  • Error connecting OData service with Appbuilder

    Hello,
    I have created an OData service with SAP Netweaver Gateway and there isn't any problem while testing the service on the browser.
    I made all the right settings in SMP 3.0 and the system is reached successfully from the server.I am developing the app with appbuilder so when trying to connect with SMP onboarding service there is the following error. Failed to get Service metadata.I can see the metadata in the browser so i can not understand what this error means.
    If anybody can help it would be very useful because im in a deadlock.
    Thank you in advance!

    Hi IIliona,
    I am facing the same error
    I can see the metadata in the browser.
    The operation of entity set returns correct results as well.
    Did you fix the it?  If yes, do you mind sharing your solution?
    Thanks!!

  • Issues with ODATA service creation

    Hi Gurus,
    I am facing some issues with ODATA service creation. I have an analytic view which I want to consume via SAP UI5.
    As per guides and blogs, I need to create 3 files, namely .xsaccess, .xsapp and .xsodata. I created these three files but at the same time .xsodata and .xsaccess got created at one more place. That place is my package which I checked out while creating the repository. Now when I try to activate my .xsaccess or .xsapp file, I get an error message - "The file name .xsaccess or .xsapp already exists and only 1 file is allowed per package"
    for more info please revert.
    Kindly help.
    Best regards,
    Chandan

    Chandan Sinha wrote:
    Can we add multiple analytic views in one ODATA service?
    Certainly.  You just have multiple entities then. You can even create associations between them. Here is an example that uses a combination of CDS Views, Attribute Views, and Analytic Views:
    service namespace "Wile.services" {
      "Wile.data.models::AN_EPISODES" as "Episodes"
      keys ("EPISODE_ID")
      navigates ("ToACMEItems" as "ACMEItems",
                "ToCoyoteNames" as "CoyoteNames",
                "ToRoadRunnerNames" as "RoadRunnerNames",
                "ToDirectors" as "Directors",
                "ToWriters" as "Writers");
      "Wile.data.models::AT_ACME_ITEMS" as "ACMEItems"
      keys ("EPISODE_ID","ITEM_ID");
      "Wile.data.models::AT_ACME_CATALOG" as "ACMECatalog"
      keys ("ITEM_ID")
      create using "Wile.services:ACMECatalogExits.xsjslib::itemsCreate"
      update using "Wile.services:ACMECatalogExits.xsjslib::itemsUpdate"
      delete using "Wile.services:ACMECatalogExits.xsjslib::itemsDelete";
      "Wile.data::WileECoyote.Episode.CoyoteNamesView" as "CoyoteNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.RoadRunnerNamesView" as "RoadRunnerNames"
      with ("EPISODE_ID","NAME_ID","NAME")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.DirectorsView" as "Directors"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      "Wile.data::WileECoyote.Episode.WritersView" as "Writers"
      with ("EPISODE_ID","NAME_ID","NAME","URL")
      keys ("EPISODE_ID","NAME_ID");
      association "ToACMEItems" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "ACMEItems"("EPISODE_ID") multiplicity "*";
      association "ToCoyoteNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "CoyoteNames"("EPISODE_ID") multiplicity "*";
      association "ToRoadRunnerNames" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "RoadRunnerNames"("EPISODE_ID") multiplicity "*"; 
      association "ToDirectors" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Directors"("EPISODE_ID") multiplicity "*";
      association "ToWriters" principal "Episodes"("EPISODE_ID")
       multiplicity "1"
       dependent "Writers"("EPISODE_ID") multiplicity "*";

  • Create a record using SAPUI5 and ODATA Service

    Hi there,
    since SPS6, SAP HANA should allow CRUD operations using an ODATA Service.
    That sounds nice and so I wanted to give it a try.
    I've started by creating a simple table and set up a tiny application that displays the data in a grid (using a JSON Model) and allows to insert new records by entering data into two textfields and save them as a new record to the databse. That works well, the grid shows the records which I have created using the SAP HANA Studio.
    So I wanted to create new records, and the documentation says very clearly how to create a new record.
    I've tried it this way, but when the request is send I get an 501 Not Implemented error.
    Thats the code I'm using in my SAVE-Button:
    btnSave.attachPress(function() {
       var entry = {};
       entry.id = tfUserId.getValue();
       entry.username = tfUserName.getValue();
       oData.create('/tbl_user', entry, null,
       function() {
          alert("Create successful");
       function() {
          alert("Create failed");
    After that I've tried to create a record using the POSTMAN extension for Chrome browser as mentioned in this cool video by Thomas Jung.
    Unfortunately, this also doesn't work for me. After sending the request I get as respone a sap hana xs login window with Status Code 200 instead of a status code "201 created".
    Here's a screenshot:
    I'm using SAP HANA Cloud Trial.
    Anybody got an idea what I'm doing wrong? Or does ODATA CRUD not work an SAP HANA Cloud Trial?
    Many thanks,
    ben

    Hi Jason,
    exactly, it's the logon page returned that is opened when I open the service URL in the browser. After logging on I can see the results of the ODATA service call.
    The URL must be correctly defined, the grid shows up the data from the ODATA Service.
    And yes, the URL looks OK when expecting in Chrome developer tools...
    Thanks,
    ben

  • Issue in creating web service for a ABAP Function Module

    Hi,
    now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
    1. select the Function Module, named "zws_test".
    2. in the context menu, select "create->proxy object". so we enter into wizard.
    3. in the wizard, press the radio button "Service Provider".
    4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
    5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
    6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
    7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
    8. Save in the local package.
    9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
    10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
    11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
    12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
    13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
    14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
    15. I use t-code SM59 to test connection  and get the following info.
          Status HTTP Response     200
          Status Text                      OK
          Duration Test Call             328 ms.
    who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
    Thanks in advance
    Johnney

    have you seen this weblog
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

  • Anyone been able to get the sap.ca.ui.FileUpload control working with a Gateway OData service?

    Hi,
    I have been trying to get the sap.ca.ui.FileUpload control working with an OData Gateway service, specifically /IWPGW/TASKPROCESSING which is the service used by both Fiori Approve Requests and the Unified Inbox.
    I have looked at the sample application in the Explored at SAPUI5 Explored
    I have managed to replicate that and get it to work, but as soon as I switch it from a JSONModel to an ODataModel I get javascript errors from within the setModel method of the control. I have redefined that method and corrected the errors, which enables me to get a bit further, but then I hit more errors, and other strange behaviour.
    Either I am doing something completely wrong, or to me it appears as if this control is still extremely buggy and maybe either not designed to work with an ODataModel, or just hasn't been tested using an ODataModel. I'm hoping it is my mistake.
    So has anybody out there successfully managed to use this control connecting it to a Gateway OData service? If so please share your experience.
    Thanks,
    Brad

    Hi Pauline,
    Same issue I had, I switched to using a sap.m.list and handling the press as follows:
    attachmentsList.bindItems(workItemPath + "/Attachments", new sap.m.StandardListItem({
                               type: sap.m.ListType.Active,
                               title: "{FileName}",
                               description: "{CreatedByName}",
                               icon: "sap-icon://doc-attachment",
    //                         counter: "{FileSize}",
                          info: {path : "CreatedAt", formatter: dateTimeFormatter},
                          tap: function(oEvent){
                                var oContext = oEvent.getSource().getBindingContext();
                                var media_src = oContext.getProperty().__metadata.media_src;
                                sap.m.URLHelper.redirect(media_src, true);
                        }), new sap.ui.model.Sorter("CreatedAt", true));
    So sap.m.URLHelper.redirect(media_src, true); is what loads the attachment.
    See the full function handler:
    function(oEvent){
    function(oEvent){
                  var oContext = oEvent.getSource().getBindingContext();
                  var media_src = oContext.getProperty().__metadata.media_src;
            sap.m.URLHelper.redirect(media_src, true);
    This should be enough if you only want to list and display the attachments, then you don't really need the FileUploader control as that is more advanced and handles upload, display, change and deletion of files.
    I only needed to upload and display files, so I used a list to display it and created a separate upload button using the sap.ui.unified.FileUploader control.
    Hope that helps.
    Cheers,
    Brad

  • Access cloud for customer Odata Service from HCP

    Hi 
    I have a UI(sapui5) which consumes ODATA Service from "cloud for customer" system.
    I am using connectivity proxy servlet(using destinations) to avoid cross origin issue.  when i deploy and access this UI from cloud, the response of the odata service is " HTTP status 500 javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated".
    I tried giving the http url and that says "502 bad gateway".
    How to resolve SSL issue for cloud.?
    Is there any other configuration that needs to be done to consume ODATA from "Cloud for customer" system
    Regards
    Priyal

    Hi Priyal:
    For the SSL handshake at the destination level either you would have to set the property "TrustAll=TRUE" or you have to create a JKS keystore which contains the Server Certificate for the Cloud for customer system and then upload this either via the Admin cockpit (at destination level) or deploy the same via the NEO console tool.
    Best regards
    Venki

Maybe you are looking for

  • How to setup reports in Apps Server 10.1.2.0.0

    I know 10.1.2.0.0 does not have oracle reports. I know that 10.1.2.0.2 does have oracle reports. From the docs I have I cannot upgrade 10.1.2.0.0 to 10.1.2.0.2. Is there anyway I can load a new Apps server 10.1.2.0.2 and get it to use the 10.1.2.0.0

  • How to enable cross origin support in SharePoint

    Could someone please help me to enable cross origin (CORS) support on SharePoint 2010. I am following steps mentioned in http://www.avanadeblog.com/sharepointasg/2013/01/cors-request-to-sharepoint-with-basic-authentication.html and http://evolpin.wor

  • I lost message tone and keypad and keylock tones in my iphone 4

    i lost message tone and keypad and keylock tones in my iphone 4

  • I can't install flash player

    Hi! I'm having this issue for a while: I have a MacBook Pro (mid 2012) 2.5 GHz Intel Core i5, 4 GB 1600 MHz DDR3 Every time i try to install Adobe Flash Player just don't work. It appears a message at 25% - 30% with the legend "Lost Connection.Trying

  • Map Deployments

    Hello. As part of our Disaster Recovery plan, we go to an alternate site and run our applications (including Warehouse Builder) on a server that is replicated from our shop, but with a different name. Because the server names are different, our Data