How to consume HANA xsodata into Netweaver gateway as odata

Hello all,
I am  trying to consume XSODATA from HANA system into Netweaver gateway  system using OSCI method.But I am  getting error '
error while fetching the source metadata'.Kindly let me know where am going wrong.
Regards,
Imra

Hi ,
Please check the RFC configuration as mentioned in the blog. Also have a look at the comment section for more on RFC config. 
Could you please check what is the URL being called. You can check it in class /IWFND/CL_OCI_HTTP_PROCESSOR method /IWFND/IF_OCI_HTTP_WRAPPER~GET.
Hopefully here you can get a hint or the error.
Regards,
Atanu  

Similar Messages

  • How to deploy HTML5 application into Netweaver GateWay system?

    Hi All,
    We have built a HTML5 based application with java script code to access OData services hosted in NWG.
    It is running fine in our local server(tomcat).
    Now my question is how to  deploy it to Netweaver gateway server.
    Please advice asap.
    NOTE: It is not a SAP UI5 application.
    Thanks & Regards
    Basavaraja Kakarla
    91-8095624007

    Hi Zhijun,
    Thank you for your repay.
    You are welcome
    After assembly , can i deploy the application into test system by CMS? mean that if it can be done not through CR?
    Yes, you import the changes on the "Test" tab of the transport studio of the CMS webui. This will deploy the changes to Test (to the system you have specified in the runtime system configuration for this track)
    and what is the benefit of Dev system and Con system
    See the guide: http://help.sap.com/saphelp_nw70/helpdata/en/b6/e6b9fc9ec00f4ca4a0d3e0645e87b5/frameset.htm
    Best Regards,
    Ervin

  • How to consume oData from HANA?

    Hi All:
    I am starting using HANA (the trial public version), and I want to expose an oData service that allows me to feed an aplication. How it is possible to do this? Is possible to do it from HANA Studio?
    Thanks!

    Hello,
    I am not sure if I understand - at the moment SAP HANA is not supporting oData - you can choose from following interfaces:
    u2022 SQLDBC (only on windows) - SAP native database SDK
    u2022 ODBO (OLE DB for OLAP)
    u2022 ODBC
    u2022 JDBC
    Or you might use other SAP technology to provide this... maybe SAP NetWeaver Gateway
    http://help.sap.com/saphelp_gateway20/helpdata/en/2f/d48687c1e14e87915d41e595a4285d/frameset.htm
    I will also quote what Juergen said about oData (Dec 5, 2011)
    Re: HANA with Mobility?
    Later versions of HANA may include an ODATA interface, so you can talk to your tables and models in the same way you talk to NW Gateway. It won't require a Gateway system, it will just look like one from a protocol point of view. No definite roadmap published as far as I know, so take this information with the appropriate amount of salt..
    Tomas

  • Issue in Consuming Rest/JSON Service from Netweaver gateway system

    Hello Experts,
    We are trying to consume the Rest/JSON web service from NetWeaver Gateway System.
    But we are getting HTTP Communication failure error.
    URL: 'http://sgpvmc0031.apac.bosch.com/ActivityManager2/rest/v1/query/employees/amh1sgp/workItems/pending'
    The Host system of Serve is a Non-SAP System.
    In web browser, it ask for user id and password, by passing them, it provide the response.
    Please find my code details.
    DATA: lo_http_client TYPE REF TO if_http_client,
             lv_service TYPE string,
             lv_result TYPE string,
             lo_ixml TYPE REF TO if_ixml,
             lo_streamfactory TYPE REF TO if_ixml_stream_factory,
             lo_istream TYPE REF TO if_ixml_istream,
             lo_document TYPE REF TO if_ixml_document,
             lo_parser TYPE REF TO if_ixml_parser,
             lo_weather_element TYPE REF TO if_ixml_element,
             lo_weather_nodes TYPE REF TO if_ixml_node_list,
             lo_curr_node TYPE REF TO if_ixml_node,
             lv_value TYPE string,
             lv_node_length TYPE i,
             lv_node_index TYPE i,
    *        ls_weather TYPE zweather,
             lv_node_name TYPE string,
             lv_bin            type xstring,
             lv_node_value TYPE string,
             lo_conv           type ref to cl_abap_conv_in_ce,
             lv_response       type string,
             l_client type string.
    DATA: result_tab TYPE TABLE OF string,
              w_result TYPE string .
       lv_service = 'http://sgpvmc0031.apac.bosch.com/ActivityManager2/rest/v1/query/employees/amh1sgp/workItems/pending'.
    *  lv_service = 'https://rb-wam-q.bosch.com/ActivityManager2/rest/v1/query/employees/amh1sgp/workItems/pending'.
    *BREAK-POINT.
    CALL METHOD CL_HTTP_CLIENT=>CREATE
       EXPORTING
         HOST               = 'sgpvmc0031.apac.bosch.com'
         SERVICE            = '80'
    *    PROXY_HOST         =
    *    PROXY_SERVICE      =
    *     SCHEME             = SCHEMETYPE_HTTP
    *    SSL_ID             =
    *    SAP_USERNAME       =
    *    SAP_CLIENT         =
       IMPORTING
         CLIENT             = lo_http_client
       EXCEPTIONS
         ARGUMENT_NOT_FOUND = 1
         PLUGIN_NOT_ACTIVE  = 2
         INTERNAL_ERROR     = 3
         others             = 4
    IF SY-SUBRC <> 0.
    * Implement suitable error handling here
    ENDIF.
        lo_http_client->request->set_method( if_http_request=>co_request_method_get ).
        lo_http_client->authenticate( username = 'portal' password = 'portal' ).
        cl_http_utility=>set_request_uri(
            request = lo_http_client->request
            uri = '/ActivityManager2/rest/v1/query/employees/amh1sgp/workItems/pending'
        call method lo_http_client->request->set_header_field
           EXPORTING
             name = 'content-type'
             value = 'text/plain'.
        call method lo_http_client->send( ).
        call method lo_http_client->receive( ).
    Kindly help us to understand where to check.
    Regards,
    Nitin

    Hi,
    Try to test the url in the standard report RSHTTP20.
    Regards,
    Felipe

  • Problem in consuming BEX query (MDX/Easy Query) in netweaver gateway Odata model

    Hi while accessing the the Odata Service URL i am getting the XSLT Runtime error "No Valid Source context supplied" (CX_XSLT_RUNTIME_ERROR). The landscape is SAPUI5 application consumes the bex query as mdx query via Netweaver gateway odata model. Please refer the attached screenshot for details. Thanks, Ganesh.

    Issue resolved by setting flags in alias. Ganesh.

  • Consume SAP Netweaver Gateway Web service in Windows Mobile 6.5

    Hi All,
    I am using Netweaver Gateway Webservice in Windows Mobile 6.5 platform. I know if need to make POST request, first i need to make GET for fetching CSRF token and then passing the CSRF token again with POST request to do the create operation. So i have used the below syntax. But it is always saying as 403 forbidden status while making POST request. I had successfully fetched CSRF token in my get request. Is there any help available for the below syntax?
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(new Uri("http://hostname:8040/sap/opu/odata/APLX/ST_GRRF_TS_01/Headers"));
                request.Credentials = new NetworkCredential("ddsdsdsd", "sdsdsdsdsds");
                request.Method = "GET";
                request.ContentType = "application/atom+xml";
                request.Accept = "application/xml,application/atom+xml";
                request.AllowWriteStreamBuffering = true;
                request.Headers.Add("X-CSRF-Token", "Fetch");
                request.KeepAlive = true;
                WebResponse response = request.GetResponse();
                string strcsrf = response.Headers["X-CSRF-Token"];
                string strcookie = response.Headers["Set-Cookie"];
                string pXml = @"<?xml version=""1.0"" encoding=""UTF-8"" ?> <atom:entry xmlns:atom=""http://www.w3.org/2005/Atom"" xmlns:d=""http://schemas.microsoft.com/ado/2007/08/dataservices"" xmlns:m=""http://schemas.microsoft.com/ado/2007/08/dataservices/metadata""> <atom:content type=""application/xml"">" +
                     "<m:properties>" +
                       "<d:I_MBLNR>004</d:I_MBLNR>" +
                       "<d:I_MJAHR>2011</d:I_MJAHR>" +
                       "<d:I_SELECT>1</d:I_SELECT>" +
                       "<d:I_REFDOC>4500000001</d:I_REFDOC>" +
                       "<d:I_MATNR />" +
                       "<d:I_SLOC>0001</d:I_SLOC>" +
                       "<d:I_DELNOTE />" +
                       "<d:I_GR_GI />" +
                       "<d:I_PLANT>R303</d:I_PLANT>" +
                       "<d:I_VENDOR>R3000</d:I_VENDOR>" +
                       "<d:I_DATE>2013-09-08T00:00:00</d:I_DATE>" +
                       "</m:properties>" +
                       "</atom:content>" +
                     @"<atom:link rel=""http://schemas.microsoft.com/ado/2007/08/dataservices/related/Items"" type=""application/atom+xml;type=feed"" title=""APLX/ST_GRRF_TS_01.Header_Items"">" +
                     "<m:inline>" +
                     "<atom:feed>" +
                     "<atom:entry>" +
                     @"<atom:content type=""application/xml"">" +
                     "<m:properties>" +
                       "<d:I_MBLNR>003</d:I_MBLNR>" +
                       "<d:I_MJAHR>0000</d:I_MJAHR>" +
                       "<d:ITEMNO>000001</d:ITEMNO>" +
                       "<d:MATNR>R100000</d:MATNR>" +
                       "<d:QUANTITY>1</d:QUANTITY>" +
                       "</m:properties>" +
                       "</atom:content>" +
                       "</atom:entry>" +
                       "</atom:feed>" +
                       "</m:inline>" +
                       "</atom:link>" +
                       "</atom:entry>";
                request =(HttpWebRequest)HttpWebRequest.Create(new Uri("http://hostname:8040/sap/opu/odata/APLX/ST_GRRF_TS_01/Headers"));
                request.Credentials = new NetworkCredential("ddsdsdsd", "sdsdsdsdsds");
                request.Method = "POST";
                request.ContentType = "application/atom+xml";
                request.Accept = "application/xml,application/atom+xml";
                request.AllowWriteStreamBuffering = true;
                request.Headers.Add("x-csrf-token", strcsrf);
                request.Headers.Add("set-cookie", strcookie);
                request.KeepAlive = true;
                request.AllowAutoRedirect = false;
                request.ClientCertificates = cn;
                //request.Headers.Add("content-type", @"application/atom+xml");
                //request.Headers.Add("content-length", pXml.Length+"");
                byte[] bytes = Encoding.UTF8.GetBytes(pXml);
                request.ContentLength = bytes.Length;
                using (Stream putStream = request.GetRequestStream())            {
                    putStream.Write(bytes, 0, bytes.Length);
                    putStream.Close();
                response = request.GetResponse();
    Here the response in the last line always shows 403 forbidden status.

    Hi Mohanasundaram,
    This is the wrong forum for Gateway questions - sorry. Please try the following forum:
    http://scn.sap.com/community/netweaver-gateway
    Best regards,
    Jon

  • Netweaver Gateway Architecture

    Hello All,
    I am looking for architecture of Netweaver Gateway. We are planning to implement Netweaver Gateway 2.0 in Standalone mode. The main objective to implement Netweaver Gateway is to consume apps based on UI5/HTML5 and probably Fiori Apps in future.
    I have following question around this requirement:
    1) Do we need to place Netweaver Gateway in DMZ zone?
    2) Is it possible to design architecture in such a way that all mobile applications should connect to Netweaver Gateway system via Web Dispatcher? Obviously, we don't want to expose Netweaver Gateway to internet.
    3) If we route all communications via Web Dispatcher to Netweaver Gateway which I think should be possible, what will be the complexity or disadvantages?
    I found couple of documents but none of them clearly explains architecture in this area. Please provide your valuable suggestions.
    Thanks,
    Sunny

    Hi Neeta,
    You would need to consider additional factors to make that decision. Primary of which is what is the landscape being used by your customer. You have to consider things like how the users will access the app? What would be the security and authentication mechanism? Would you need reverse proxies or load balancing? Does the customer already have an existing infrastructure for web based applications which you should plug into?
    First off, I will assume you have a NW Gateway system in place for the services that are being used by the SAPUI5 app. If that is the case, then you can certainly deploy the UI app on the same server. The process described in the blog above would end up creating a BSP application, which can then be captured in a transport and moved to QA/Production.
    On the other hand, if your customer has already has an existing infrastructure for hosting and serving up Web based applications, you may want to leverage that existing infrastructure instead.
    You can get in touch with me if you would like to discuss further.
    thanks,
    Nitin

  • SAP Business Workflow and SAP Netweaver Gateway - Missing extensible elements

    Hello,
    For a mobile project we use SAP Netweaver Gateway in order to retrieve information from workflows stored into SAP Business Workflow.
    We are able to retrieve standard informations for a workflow but custom fields added into "Extensible Elements" section are lost when exit SAP NG.
    We have checked the configuration of SAP NG (by 4 differents person) and it seems to be OK.
    Do you have an idea why the custom fields are lost during SAP NG processing ?
    Thanks in advance
    Best regards,
    Dominique

    Hi Dominique,
    FYI. SAP Fiori Approve Requests uses task processing service. This may help.
    How to display application data in SAP Fiori Approve Requests app
    Regards, Masa
    SAP Customer Experience Group - CEG

  • How to Call HANA Procedure in ABAP

    Hi Everyone,
    I am new to ABAP
    I have created a procedure in HANA that accepts two input parameters and outputs a table
    I am using HANA as a Secondary Database
    How can I call this procedure in my ABAP program?
    Regards,
    Vivek

    Hi Vivek,
    depends on how you would like to call it :-)
    1. Use native SQL to call the procedure (see report ADBC_DEMO_PROC_CALLS_HDB; available in any system with a minimum NetWeaver release 7.40 SP5).
    2. Create a DB Procedure Proxy and call the DB Procedure Proxy (Tutorial: How to consume SAP HANA Procedures in ABAP; only "directly" available if HANA is the primary DB underlying your system, for secondary DB system see discussion Execute Procedure with input parameters as table from ABAP).
    3. (Method of choice available as of NetWeaver 7.4 SP5): Create an ABAP managed DB procedure (instead of the native HANA procedure) as described in ABAP Managed Database Procedures - Introduction
    Cheers,
      Jasmin

  • How to consume json webservice in abap?

    hello  every one please help me how to consume json format webservice in abap.
    i am new in abap please help me out .
    Thanks&Regards
    ~Ahmad

    hi check this,
    First create a web service in SAP. The blog by Uwe Kunath descibes this clearly. Then create an Xcode project and use the ASIHTTPRequest wrapper to connect to the web service. Parse the response with the KissXML parser. A more out of the box solution is NetWeaver Gateway. It also let you use SAP web services but it also generates iOs code for you. SAP just released a trial version in de download section.
    Example of ASIHTTPRequest
    - (void)getFlightData:(NSString *) selectedDate {
         NSURL *url = [NSURL URLWithString:@"http://abap.sapdev.nl:8000/sap/resources/flights/from/%/to/%/date/20110128?sap-client=001"];
         ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
         [request setUsername:@"BCUSER"];
         [request setPassword:@"minisap"];
         [request startSynchronous];
         NSError *error = [request error];
         if (!error) {
              NSString *response = [request responseString];
              [self parseXML:response];
    Example of KissXML
    -(void)parseXML:(NSString*)source {
         NSError *error = nil;
         DDXMLDocument *theDocument = [[DDXMLDocument alloc] initWithXMLString:source options:0 error:&error];
         NSArray *results = [theDocument nodesForXPath:@"/asx:abap/asx:values/TAB/BAPISFLDAT" error:&error];
         for (DDXMLElement *flightdetail in results) {
              NSString *airlineid =   [[flightdetail elementForName:@"AIRLINEID"] stringValue];
              NSString *airline =     [[flightdetail elementForName:@"AIRLINE"] stringValue];

  • How to consume web service in Agentry in SMP 3.0

    Dear All , I am using web service in Agentry to retrive data but could not able to fetch it . I have made connection with HTTP-XML for consuming webservices. and also give proper information in Agentry.ini files Ex : [HTTPXML-2] name=HTTP-XML Back End authenticationCertificateStore=MY authenticationCertificateStorePassword= authenticationCertificateStorePasswordEncoded=false autoDequote=true ;baseURL=http://localhost:81 baseURL=http://sapes1.sapdevcenter.com:8080/sap/opu/odata/iwbep/gwdemo/ basicAuthenticationPassword=123456 basicAuthenticationPasswordEncoded=false basicAuthenticationUserID=P1466405733 constantsFile=httpxml_sd.ini enableAuthentication=false enablePreviousUserAuthentication=false httpConnectTimeout=300 httpReceiveTimeout=300 httpResolveTimeout=300 httpSendTimeout=300 listenOn= timeout=300 timeZoneName= useSSL=false xmlAllowXSLTScript=true xmlNamespaces= xmlResolveExternals=true xmlValidateOnParse=true for more information i have attached agentry XML screen shot as well . Can you please guide me how to consume web services in Agentry correct way ? Note : Currently i am using standard netweaver demo web services . Thanks & Regards ,   Kunal Varaiya
    Tags edited by: Michael Appleby

    The XML Steps URL will be added to the Agentry.ini BaseURL.  So you dont' need the full URL on the step.
    So when Agentry Runs the step to call the backend it will go:
    <BaseURL>/<Step's URL>
    This way if you need to change the base URL, IE, going from Dev to QA to Production Server you only need to change the Base, and not go into every step and update it.
    URL: This attribute contains the URL to which the Agentry Server will make a request. This value will be appended to the value configured as the base URL for the HTTP-XML system connection. This base URL is configured within the HTTP-XML system connection configuration options for the Agentry Server. Proper use of both this base URL option and the URL entered in the requests of the step definitions can support portability for the application, with the base URL being the implementation-specific portion and the step’s URL being the portion not likely to change for the same back end system from one implementation to the next.
    http://help.sap.com/saphelp_smp303sdk/helpdata/en/7c/143d5d70061014b323be16eb0b0a77/frameset.htm 
    Stephen

  • How to consume a web service provided by third party system from SAP system

    Hi Friends,
    Could any of you provide me a clear picture on how to consume a web service from SAP system and is provided by a third party system?
    Do we get an URL to create a client proxy for consuming the web service?
    Thanx in advance,
    Ram

    Hi Ram,
    of course you cannot supply the WSDL URL. Inside the WSDL (just view it in your browser) you find (usually but not necessary) towards the end something like
    <soap:address location="http://www.weather.gov/forecasts/xml/SOAP_server/ndfdXMLserver.php"/>
    which is the actual adress of the service.
    An example service can be found here:
    <a href="http://www.weather.gov/xml/">National Digital Forecast Database</a>
    containing the WSDL URL at
    <a href="http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl">this address</a>.
    You might also want to browse for the amazon webservices which allow you to embed queries against amazon into your application.
    have fun,
    anton

  • How to insert a query into a NEW workbook ?

    Hi Friends,
    Could some one tell me how to insert a query into a new workbook? i am trying to run query in NW2004S BEx Query Designer, which always open the query on web when executed. i want to run the query in NW2004S BEx Query Designer and want it to open the result in Excell.
    If i am not wrong then to do the same, i need to embed the query into workbook. Correct me if i am wrong. If i am right then plzz tell me the steps to insert the query into workbook.
    Ur help will be rewarded in terms of points.
    Thanks,

    Hello,
    If you open the BEx Query Designer from the desktop, you cannot execute the query directly to the BEx Analyzer for an Excel view. You can only execute it directly to the Web. This is true for the SAP BW 3.x version as well as the SAP NetWeaver 2004s version.
    If you open the BEx Query Designer from within BEx Analyzer, once you select (or create) your query, you will have a green check mark icon that will then allow you to deploy the query directly to the BEx Analyzer for the Excel view.
    However, this would only make sense if you are creating or modifying the query. If not, you would simply open BEx Analyzer and use the Open Query option in this tool to see your query in an Excel format, as has been previously suggested by the other respondents to this posting.
    Regards,
    Katie Beavers
    SAP NetWeaver Product Management

  • SAP NetWeaver Gateway and JSON Error Handling

    Hello All,
    I am developing a small test application using Netweaver Gateway to understand the error handling.  I am using Postman to test the Gateway service.  I have developed small RFC FM to read return list of deliveries for a shipment.  The RFC reads in a shipment number and returns the list of deliveries.  The RFC also has Return parameter of type BAPIRET2 that stores the error message if shipment is not found.  We want to use only JSON format for the application.  So, I have set the 'Accept' parameter at request header to 'content/json'.  I am also aware of the exception /IWBEP/CX_MGW_BUSI_EXCEPTION that allows to throw an error message from backend suite.  I have that by having a Return parameter of type BAPIRET2, the generated method automatically handles the error message and sets the correct HTTP status.
    Now the Problem:
    As mentioned earlier, we want to use JSON format.  When I set the header parameter or specify $format=json in the URI the HTTP status code is always set to 500 when there is an error.  The error message about invalid shipment also is not returned.
    When I remove the JSON format parameters, the XML format is returned and HTTP status is set to 400 with appropriate error message.
    How can we get the Gateway to set the HTTP status code to 400 along with error message in the event of an error in RFC.  I have tried with the exception /IWBEP/CX_MGW_BUSI_EXCEPTION and BAPIRET2 return parameter but still does not work.  Is this a known issue in Gateway/JSON?
    Please see attached screenshots.
    Thanks,
    Rutul Thakkar

    Anyone have encountered this issue?  Any suggestions?
    Thanks,
    Rutul Thakkar

  • How to consume WSDL from SR in PI 7.1

    Hi,
      How to publish WSDL into SR. How to consume WSDL from SR. Can anybody guide me step by step.
    Thanks & Regards,
    Venkat K

    Hi venkat,
    Check out the blog : /people/daniel.graversen/blog/2008/02/27/publish-services-from-pi-71-to-the-service-registry
    also : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0f3cf81-e6da-2a10-6891-ef321fdc1a6b
    Thanks,
    Pooja Pandey
    Edited by: Pooja Pandey on Jan 27, 2009 10:26 AM

Maybe you are looking for

  • How to limit the search help in the selection screen?

    Hi All, I got a selection option in a selection screen, say SELECT-OPTIONS KSCHL FOR VAKE-KSCHL. I want to limit the output list of the search help of this field, e.g. 33 entries for a specific application and usage. What should I do ? Thz.

  • Publish book - print sheets with no data

    hi all, i would like to use the option to print sheets in a book with no data but with printing to pdf. i have tried to select the option when printing to an actual printer, but then selected also the option to print to pdf, but this does not work. i

  • Problem in footer

    Hi all, There is a strange problem in our final PDF output in the footer section along with the date we are getting the time too.Our requirement is that we need to have only the date which is fetched from the table.The query is fetching as 06/08/2007

  • "Go Back" whilst adding SESSION VARIABLE?

    Is it possible to add a SESSION VARIABLE at the same time as one operates a "Go Back" link? My site covers information for three towns. The names of the towns are the possible SESSION VARIABLES. In the absense of a SESSION VARIABLE I plan to divert t

  • How to keep old versions of apps before updating

    I may want to retain the old version of some of my apps. On my Mac whenever I download updates to software, I always keep the installers for the old versions, just in case. However on iOS, when you download an update, it unceremoniously erases your o