Consuming SAP HANA from ABAP

Dear all!
I am trying to get data FROM HANA into ABAP AS (so an opposite unusual direction ).
What is the best way of connecting them? Can't find any description.
In Simple words: I have an ABAP program. Now i need connect to  Hana (RFC, whatever), then from ABAP program send SQL statement into HANA and then get data back.
What is the easiest/best way?
BR, Dmitry

Hello,
please check SAP HANA Database - SQL Script Guide
page 43 - chapter Calling SQLScript from ABAP
https://service.sap.com/~sapidb/011000358700000604932011
There is nice example how to call SQL Script from ABAP (this also includes calling SELECT statements).
Tomas

Similar Messages

  • How to consume WEB SERVICES from ABAP ??

    Q: How to consume WEB SERVICES from ABAP program??
         the point here is i am using SAP release 620 and the creation of proxy is out of scenario
         and also no XI.    Its only through ABAP program i need to consume one web service (its a HTTPS one ),
        Using cl_http_client... i tried it but i am totally confused of whats happening ???
    Req some senior ppl advice on the same/approach.
    any hints will suffice my way of approach...!!!
    Please do put in your valuable advices..!!
    Thanks in advance..!!!!

    Hello Srinivas,
    Following is the code for calling web service:
    data: client type ref to if_http_client,
          host   type string value 'server url',
          service type string value '8080',
          path type string value '/sap/public/ping',
          errortext type string,
          proxy_service type string,
          scheme type i value 1.
    call method cl_http_client=>create
    exporting host  = host
            service  = service
         proxy_host  = host
       proxy_service = service
       scheme        = scheme
    importing client  = client
    exceptions
        argument_not_found = 1
        internal_error     = 2
        plugin_not_active  = 3
        others             = 4.
    case sy-subrc.
      when 0.
         write 'Server reached successfully'.
      when others.
         write: 'sy-subrc =', sy-subrc.
    endcase.
    Once you got the client object you can call following methods:
    "Set the requrie URL for the web service you want to call. This is not WSDL anyway!!
    cl_http_utility=>set_request_uri( request = client->request
    uri =' url 2 be called ').
    *Then you can call send method with proper inputs for sending request to WS
    CALL METHOD client->send
    Then you can use receive method for getting the response
    CALL METHOD client->receive
    *You can get last error in case of exceptions
    CALL METHOD cl_http_client=>get_last_error
    *Close the client object
    CALL METHOD client->close
    For more information on full code refer my link in previous replay.
    Thanks,
    Augustin.
    Edited by: Augustarian on Aug 18, 2009 1:49 PM

  • Windows authentification while consuming web service from ABAP

    Hi All,
    We are consuming web service from ABAP, we have created client proxy in SE80 and configured logical port in LPCONFIG.
    This one was working fine. Now we have added  windows user authentification to access this service.
    Now when I'm trying to regenerate this proxy in R/3 it is asking for user and password. When I enter these details this one is not working.
    If I access this service direcly from internet explorer and I enter same user and password then I would able to access this service.
    Could you please let me know how to handle this.
    Regards
    Vikram

    The dialog that is produced by HTTP Destination object of the logical port is designed only for use within Classic Dynpro applications.  There is no prompt produced when running in Web Dynpro.  If possible assign a generic user within the logical port definition and this will be used automatically by all users.

  • Is it possible to call std. SAP transaction from abap wd

    Is it possible to call std. SAP transaction from abap wd so that transaction appears and work as in gui? Without portal ofcourse.
    I know that using webgui and/or ITS it is possible so then it must be somehow possible....

    Hi,
    see Web Dynpro ABAP call transaction in the foreground and just carry out a simple search in this forum, then you'll find several threads with similar questions...
    Regards, Heidi

  • Error Consuming a webservice from ABAP

    Hi all,
      I am consuming an external webservice from abap. I created teh proxy using WSDl file. While testing teh service its giving an exception like this-
    "JAXB unmarshalling exception: Unable to create an instance of de.*******v2.MeldungType; nested exception is javax.xml.bind.UnmarshalExcept
    ion: Unable to create an instance of de.****.MeldungType# - with linked exception:#[java.lang.InstantiationException]"
    With a soapfaultcode: 1..
    can any one help out in arriving at teh reason for this..
    Regards
    Sandeep

    I've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java...  Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition.  It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.
    Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.
    HTH.

  • Process to Upgrade SAP HANA from SPS06 to SPS07 on distributed systems

    Hi Experts,
    We have a requirement to upgrade our SAP HANA system system from SPS06 to SPS07, but I have below queries on the same:
    1) Do we need to consider any Notes before applying the upgrade for pre and post steps (as per my knowledge we have to consider post upgrade note: 1962472, are there any other too?)
    2) As per my knowledge, we just need to stop SAP app systems and then backup of HANA system
    3) Also we have a distributed environment in our landscape (three multiple hosts), what could be the upgrade approach, is it same as like single host environment (as /hana/shared will be the common to all distributed hosts)
    Could anyone clarify my questions please.
    Also for your information we have BW systems on top of HANA DB
    Thanks very much in advance !
    Kind Regards,
    Arun Reddy
    Message was edited by: Tom Flanagan

    Hi John,
    Thank you for the response, our source and target levels are (Source - 1.00.69.00.385196 Target - 1.00.74.03.392810)
    I just wanted to ask you one more quick question here, can't we upgrade the above mentioned versions in one go? or we need to upgrade in two steps like, at first upgrading from 1.00.69.00.385196 to 1.00.73.00.389160  and then to target level 1.00.74.03.392810?
    Also as you said in distributed environment we can upgrade as same like single host environment, so it same like below approach?
    1) stopping the hana database
    2) navigate to media path and then execute hdblcm in gui or command line
    3) select option upgrading existing system
    4) provide the passwords and system poped-up inputs
    5) select the target levels of HANA components
    6) once upgrade done successfully, then need to upgrade hana client in all app servers
    if my above assumption is correct, then I have couple of questions like:
    1) in which host we need to login and perform the upgrade? (as we are having three hosts- HANADB1, HANADB2, HANADB3) , is it okay we can do from any of the three hosts?
    2) Also if upgrade stopped at middle due to errors, do we have option like to start the upgrade from the point where it stop? else we need to restore the lat successful backup and then again need to perform the upgrade from starting point?
    Sorry for asking many questions, i have done the upgrade in single host environment, but not on distributed. So wanted to be make sure with all points to action the activity.
    Thanks for your help and patience in advance !
    Kind Regards,
    Arun Reddy

  • Consume external webservice from ABAP

    Hello all,
      Can we consume external web service from ABAP??
      If yes please gimme a sample code to do that..
    Thanks in advance..
    Regards,
    Maya

    Can we consume external web service from ABAP in version 4.7??

  • SAP HANA from analytics perspective

    Hi,
    My aim is to develop solutions for big data analytic problems. I get a feeling that my focus should be on "SAP HANA development" perspective alone and not fiddle into java or HTML developments. am i right? I am not sure if java or HTML developments would be needed.
    Thanks,
    Murali.

    Hi Gan,
    Please check below note
    1948334 - SAP HANA Database Update Paths for Maintenance Revisions
    also below guide
    http://help.sap.com/hana/SAP_HANA_Master_Update_Guide_en.pdf
    I hope you can directly upgarde from SPS04 to SPS 07.
    Best Regards,
    Atul

  • Login Issues to SAP HANA from Design Studio

    Hello All ,
    I am pretty newbie here so the question might seem a bit elementary .We are trying to connect to our SAP HANA environment from Design studio .When we are pinging the XSEngine URL it is responding properly .But when we are  trying to connect from Design Studio the following error occurs .
    Here is the landscape we have designed so far :
    HANA Server is installed .
    BOXI 4.1 SP 5 server is installed .
    HANA and BO servers are communicating through SSL .
    Design Studio Add-on is installed on BO server .
    When we tried to explore the path using HANA explorer we found the path mentioned in the error screen does not exist .
    What we need to do to overcome this error ?
    Regards,
    Sourav Roy

    Hi Sourav,
    As mentioned by Karol, you have to deploy the DS-HANA Addon on your HANA System.
    How to Document : Getting Started on SAP Design Studio 1.3 powered by BW on HANA – Part 2
    Overview and Permissions : Design Studio 1.3 on HANA Platform
    Thanks,
    Poovin.

  • Consuming Web Service from ABAP Web Dynpro

    I have written program to consume KM Web Service through ABAP as well as ABAP Dynpro in SAP R/3 by calling Consumer Proxy.
    When I run the program from SE38, it prompts me for user-id & password. If I pass KM Server user-id and password I am able to execute the web service successfully.
    However, while I execute the same code through Web Dyn-pro , it does not ask for user-id and password & terminates with CX_AI_SYSTEM_FAULT : SOAP:1,007 SRT: Unsupported xstream found: ("HTTP Code 401  : Unauthorized")
    I have created a Logical Port in R/3 & I am using this Logical Port while creating an Object of Consumer Proxy.
    Kindly let me know how to resolve this issue.

    The dialog that is produced by HTTP Destination object of the logical port is designed only for use within Classic Dynpro applications.  There is no prompt produced when running in Web Dynpro.  If possible assign a generic user within the logical port definition and this will be used automatically by all users.

  • Consuming Sharepoint webservice from Abap

    Hi, I have a need to access a Sharepoint database from SAP.  I am using the search.aspx webservice that sharepoint offers, or at least trying to.  I set up an abap proxy from the WSDL that sharepoint supplied (which was not the best WSDL).  From my ABAP I need to call the sharepoint service and I am having a little difficulty getting a result back.
    Here is the ABAP code I have so far:
    DATA: gr_query  TYPE REF TO zgms_cycletimeco_query_service,
          gs_input  TYPE zgms_cycletimequery_soap_in,
          gs_output TYPE zgms_cycletimequery_soap_out.
    DATA: oref   TYPE REF TO cx_root,
          text   TYPE string,
          oref2   TYPE REF TO cx_root,
          text2   TYPE string.
    CREATE OBJECT gr_query.
    CONCATENATE 'get_text( ).
    ENDTRY.
    I am trying to retrieve the record that contains HE2009-0624-084648 with no luck.
    The error message I get says no results found.
    Does anyone know what I am doing wrong?  Do I need to specify the field in sharepoint that contains this data?
    Thanks in advance,
    René

    Thanks for your reply.  I actually tested today in SE80 on the proxy, and the request was formatted as:
    <n0:Query xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
    <n0:queryXml>This is a string 6</n0:queryXml>
    </n0:Query>
    When I execute it, the reponse is:
    - <n0:QueryResponse xmlns:n0="urn:Microsoft.Search" xmlns:prx="urn:sap.com:proxy:PLD:/1SAI/TAS4ADD6B94366302A825F7:700:2007/10/04">
      <n0:QueryResult><ResponsePacket xmlns="urn:Microsoft.Search.Response"><Response domain=""><Status>ERROR_BAD_REQUEST</Status><DebugErrorMessage>Data at the root level is invalid. Line 1, position 1.</DebugErrorMessage></Response></ResponsePacket></n0:QueryResult>
      </n0:QueryResponse>
    I don't really know what the format would be in between the queryXml tags.  If anyone knows, please help!
    Thanks.

  • Can we call a webservice which is defined outside SAP system from ABAP

    Hi All,
      i am very new to the ABAP. i would like to know how we can call a webservice which is defined in some other system from the ABAP code. if you are providing any sample code then it will be very help ful for me.
    Thanks in advance.
    - Siva

    yes its possible. check out the weblog
    /people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
    Regards
    Raja

  • Call (consume) a webservice from ABAP for dummies

    Hi
    I find the documentation for this topic very confusing. It a badly structured mix of documentation of client scenarios, server scenarios and worst of all a lot of XI nonsense.
    I need purely client scenario documentation without any info about XI and without any info about creating web services.
    I just need to know how to consume a web based webservice in ABAP program. Where can I find this docu?
    I have tried to generate proxies from different WSDL sources, but it always fails with different error messages.
    Can anyone suggest a simple WSDL webservice usefull for testing my setup?
    Best regards
    Thomas Madsen Nielsen

    You are right, the help files do mix consuming and creating, but they do provide a list of steps for consuming and what you need to do.  To consume a web service, the general steps you need to follow are:
    - Create an extendable package with use accesses SAI_SXMS, SAI_TOOLS, SAPPINT
    - Create a proxy class using the wizard in SE80 (right click on the package -> Create -> Enterprise Service) - the creation of the class depends on the WSDL document - you can either generate based on the url  for the WSDL or download the WSDL document and import it as a file in the wizard.  You may need to tinker with the WSDL document to get the class generation to complete successfully. Your WSDL is here: [http://maptp12.map24.com/map24/webservices1.5?soap=Map24Routing]
    - Create a logical port in LPCONFIG or SOAMANAGER (assumes NW 7.0 SP14 or later) with information in the WSDL
    - Create a program to consume the service method - it will look something like this (abbreviated):
    DATA: gv_client_proxy  TYPE REF TO zcwsbb_co_global_weather_soap,
          gv_sys_exception TYPE REF TO cx_ai_system_fault.
    DATA: gs_request   TYPE zcwsbb_get_weather_soap_in,
          gs_response  TYPE zcwsbb_get_weather_soap_out,
          gs_weather   TYPE zst_currentweather.
    DATA: gv_message   TYPE string.
    TRY.
        CREATE OBJECT gv_client_proxy.
        CALL METHOD gv_client_proxy->get_weather
          EXPORTING
            input  = gs_request
          IMPORTING
            output = gs_response.
      CATCH cx_ai_system_fault INTO gv_sys_exception.
        CALL METHOD gv_sys_exception->if_message~get_text
          RECEIVING
            result = gv_message.
        WRITE: gv_message.
        FREE: gv_client_proxy, gv_sys_exception.
        EXIT.
    ENDTRY.
    - Transform the response as required using ST or XSLT

  • Is SAP going from ABAP to Java

    Upto how much extent are following true, i heard from few SAP people.
    1. lot of features currently implemented on ABAP will be shifted to Java gradually.
    2. all the new functionalities  will be preferably developed by SAP in Java instead of ABAP.
    3. in the future, all of the components/features will be in Java instead of ABAP.
    thanks,
    Ganesh.

    > I have a doubt over here ...All the SAP ESS/MSS applications were in Web Dynpro for Java but now they are slowly been converted to Web Dynpro ABAP ..... so is SAP going the other way round ...converting all its previous Java applications back to ABAP?
    Yes - you're right - but that's something many customers highly appreciate, especially in the case, when they enhanced/modified/adapted the pre-ERP ESS/MSS functionality in ABAP which would now needed to be ported over to Java. Due to the conversion back to WD-ABAP they can stay with their current code logic and "just" need to adapt the frontend to WD.
    I heard from quite some (SAP-)people something like
    ABAP --> Service provisioning
    Java --> Service consumption
    so the business logic stays in ABAP but the frontend, that actually uses the functionality, is written in Java.
    IMO the main problem of all that Java stuff is, that there is no consistency about how it's used across the applications. If you e. g. compare ESS/MSS to the BI (the Java parts) then you'll see, that ESS/MSS uses the ABAP customizing to layout the functionality on the portal but the BI uses real functionality to do that. Some applications use JCo, others use WebDynpro connections, others use ICM - just as the application grew up over the time. This makes handling different applications in a portal so utterly cumbersome because you first have to find out, how they connect to backends before there's a chance to find out, why something is not working.
    Another example is e. g. the Redwood scheduler (provided as a basic license for free with each Netweaver license) - the software itself is VERY good but I would never dare to run such a crucial functionality as batch scheduling (on which we highly rely on for our business) on a Web-AS Java in production.
    Markus

  • Problem with consuming web service from abap

    Hello,
    I want to consume this web service VatatWebService Web Service From SAP.
    The transaction code soamanager doesn't exist in our system, i'm the only man who use SAP in our company(we don't have BC peoples....).
    I find some advice to use "wsadmin" and "lpconfig", but i do not know the step: wish data i have to fill in in tcode "wsadmin" or "lpconfig".
    I'm very new in this case...
    Is there any doc showing the step to consume a web service?
    Thank u very match.
    Ouail

    Hi,
    Have you tried to search using that magical tool called Google?  If I search for "SAP LPConfig" I get lots of promising looking answers:
    You could also try searching help.sap.com
    I appreciate you are new but one of the best skills you can learn in the world of SAP is how to search out and find information, so you aren't dependant upon SCN and/or others to help you when you get stuck.
    Cheers,
    G.

Maybe you are looking for

  • I need to be taught about ID3 tags - help, anyone?

    Some of my songs are only appearing on 'Songs' on my iPod, and not simultaneously under 'Artists'. I have found this is because probably because of ID3 tags.....I don't know what they really are and I don't know how to fix ones that aren't 'complete'

  • Paramter visibility in Report Output

    Hello All, I am having a requirement to "Print Parameters in a output(pdf,xls,csv) of a report", which i am providing to my query for fetching a data. Is this possible, yes then how? Pls Help. Regards, UKJ

  • Macbook Air and Photoshop

    I work with Photoshop a lot, handling images up to 5000 pixels with many layers in my iBook G4 14' 933Mhz, 1Gb RAM, albeit slowly at filters and some tools. Since my wife wants a notebook, I'll pass Zappa (my faithful iBook) to her and buy a new one

  • FL2.x pre-installation

    Hi I have developed a FL2.x application and tested it on lots of Nokia phones. I am happy with the number of Nokias that have FL2.x pre-installed. My question is about pre-installation of FL2.x on some Sony-Ericssons that I have been researching. Acc

  • Terminal takes ages to load

    Hello! Stupid-*** problem this one. For some reason, when I click terminal icon it takes about 10 seconds for the Cursor to respond. The window pops up straight away, but the prompt doesn't appear for a while. Very odd. It's been instant up until a f