RFC to JDBC Sync Scenario and get JDBC response

Hi All,
We need to create RFC to JDBC synchronous interface with update_insert action.
And we need to get the number of records updated or inserted as response and map the response and send it back to ECC as RFC response mesg.
I have gone through the help document on JDBC and it says :
The response document has the following format; one of the two values is always 0 because either an UPDATE or an INSERT action is always executed:
<update_count>count</update_count>
<insert_count>count</insert_count>
Now following is the question: Is this this the standard feature? Because in our case Database side they will not be sending any response back.
So with the synchronous receiver JDBC channel would we get this update and insert count as response  by default?.
Please help with replies.
Thanks,
Jane

Hi Jane
No setting needs to be done by the Database team, it is a standard feature.
Whenever you insert or update records in DB using the JDBC Adapter, you will get the response with the count.
If insertion fails due to some reason in JDBC Adapter, then there will be no response.
Regards
Osman

Similar Messages

  • Http to jdbc sync scenario needed

    hi all,
         Can any one give me certain example of http to jdbc sync scenario
    Thanks in advance.

    Hi,
    Refer this link.
    For JDBC receiver side settings
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    For HTTP
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/f29e7a56e18a439984a3c6630951d2/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    HTTP Queue
    error in HTTP to file scenario
    Regards,
    Sharanya.
    Edited by: sharanya devaraj on Aug 5, 2008 8:09 AM

  • (SOAP sender) --- XI ---- R/3 (RFC receiver) this sync scenario

    Hi Experts,
    Webservice(SOAP sender) < - > XI <--> R/3 (RFC receiver) this sync scenario tested with Infopath successfully.
    I have given partner number,student object id are the two input fields(request) and i am getting student number as response. This scenario is working when i use MS infopath.
    I have generated WSDL file embedded with below URL
    http://xxxx.yyytec.passh.ed:7271/XISOAPAdapter/MessageServlet?channel=:Webservice_Sender_BS:GET_NUMBERS_Sender_CC&version=3.0;amp;Sender.Service=Webservice_Sender_BS;amp;Interface=urn%Apache
    Sender business system: Webservice_Sender_BS
    Sender CC: GET_NUMBERS_Sender_CC
    Msg Interface: STU_GET_NUMBERS_Synch_MI
    now we want to test from third party website, what are the things to be provided to the website developer to test the scenario.
    the way i generated URL, is it correct?
    if i provide above URL and generated WSDL in XI , is it enough for web developer to enter the input fields to RFC(r/3) via XI as webservice request and getting back response from RFC(r/3) to webservice via XI.
    can you please advice if any body worked on this kind of scenario.
    Thanks
    Dhanush.

    For the developer you have to provide WSDL file so that they know the input/output fields and write the code.
    URL is correct.
    Other informatino they required is Username and password of you PI system.
    Gaurav Jain
    Points if answer is helpful

  • How to authorize different computer to sync iphone and get itunes

    how to authorize a different computer to sync iphone and get purchased itunes

    FIRST, copy the iTunes folder from your old computer to the new one BEFORE YOU RUN ITUNES for the first time. Depending on your computer it will be in the Music or My Music folder. Copy the entire folder, including the iTunes Library file and the iTunes Media (or iTunes Music) folders.
    Install iTunes and Authorize it to the same account as the old computer on the Store menu.
    Connect the iPhone. Set up syncing with desktop apps on the Info tab.
    Sync the iPhone.

  • IDoc to webservice and get the response back into another IDoc.

    Hi guys
    We have a scenario where we need to send an IDoc to webservice and get the response back into another IDoc.
    Questions:
    1. Is this scenario possible without a BPM? or do we need to use BPM (Sync-Async bridge).
    2. Is there a Async to Sync bridge in BPM?
    3. How do I use this bridge in my scenario and customize it?
    4. If not possible, provide me the related docs using BPM for the same scenario.
    Appreciate your quick response
    Regards
    Naidu

    Hi,
    this link may help u............,
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1134. [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403. [original link is broken] [original link is broken] [original link is broken]
    Regards,
    Azeez khan.

  • How to send a request and get a response through xml

    How to send a request and get a response through xml files?

    This is the code that works for me. Hope you find it useful.
         public static String sendHttpGetRequest(String endpoint, String requestParameters){
              String result = null;
              // Send a GET request to the servlet
              try{
                   // Send data
                   String urlStr = endpoint;
                   if (requestParameters != null && requestParameters.length () > 0){
                        urlStr += "?" + requestParameters;
                   URL url = new URL(urlStr);
                   HttpURLConnection conn = (HttpURLConnection) url.openConnection();
                   conn.setRequestProperty("Accept", "application/xml");
                   // Get the response
                   BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   StringBuffer sb = new StringBuffer();
                   String line;
                   while ((line = rd.readLine()) != null){
                        sb.append(line);
                   rd.close();
                   result = sb.toString();
              } catch (Exception e){
                   e.printStackTrace();
              return result;
         }

  • Sender ABAP Synchronous proxy -- PI -- JDBC sync scenario pls!!

    Hi Guys,
    Can any one help to find one sample scenario like ABAP Proxy --> PI --> JDBC Sync call ? Sync ABAP proxy sample code any 2 or more filelds going from ABAP proxy and maps on JDBC sync request, up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP one Z table with response.
    Any help would be really great!!
    Many thanks in advance
    San

    up date target side SQL server database tables, in case if any error happens error/success message must go back to SAP
    one Z table with response.
    When you do an update you can get back the number of rows updated in the JDBC response....you can find this in the help page showing JDBC structure. If you are looking for any other response then probably the message needs to be genarated by PI itself after checking the response from JDBC.
    Regards,
    Abhishek.

  • HTTP-JDBC sync scenario - detailed error message

    Hi all,
    We have a sync HTTP-JDBC (DB2) scenario.
    The sender is expecting a meaningful error message.
    HTTP is on ABAP and JDBC is on the Java engine.
    So how can I get the error message on the JDBC adapter to be passed to the user.
    Say I would like to pass the sql-codes that I find at the Communication Channel monitoring for the comm Channel.
    reg

    Hi,
    One suggestion is to configure alerts at adapter engine level..
    to get the error messages to concerned user.
    Regards,
    Sreenivas.

  • Triggering a BPM(NW) using sync interface and get the sync response

    Hi Folks,
    I have a scenario where in I have to trigger a BPM (NW) using a sync interface from a SOAP client by making request to get the response from SAP webservice . If the response from SAP is successful then its a happy path but if it fails or times out then there is an failure mapping to ECC using an IDOC. My question is to achieve the sync process how many synchronous interfaces do I need to use? Please let me know if my design works with 4 sync interface. One outbound sync interface at the source (i.e the request ing system), the other inbound sync interface to the BPM to trigger the BPM, another outbound sync interface within BPM for the request to SAP. the fourth inbound sync interface at the ECC for the response from ECC. Or please let me know if there is a better design option than this.
    Regards
    Kalyan.

    Hi,
    Control Step
    Use
    You use a control step () to do the following:
    ·        Terminate the current process
    ·        Trigger an exception
    ·        Trigger an alert for Alert Management (see also: Triggering an Alert)
    Activities
    Terminate the Current Process
    Choose Terminate Process.
    At runtime, the system terminates the current process instance, including all active steps, and sets the status for the process to logically deleted.
    Trigger an Exception
    Choose Trigger Exception and specify the triggering exception (see also: Exception Handling). The relevant exception handler must be defined in the same block or a superordinate block.
    The system triggers the specified exception at runtime.
    For more information about using exceptions, see Example: Collecting and Bundling Messages - One Interface.
    Proxy..
    How to create proxy.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    How to Activate Proxy.
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Server Proxies (Inbound Proxy)
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    OutBound Proxy (Client Proxy)
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    File to R/3 via ABAP Proxy with good example
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    Debug your inbound ABAP Proxy implementation
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    Thanks,
    Satya Kumar

  • How to send data to another site, get response, redirect and get new response

    Dear all,
    I've to write a Java EE application that have to become an interface to a payment platform. The protocol require to send a POST string containing some information (including an error and response page) to an external host, get the response and redirect the user to another host using the previous response. When the user ends the transaction the host redirect the user to my error or response page.
    For the moment my user access to my application using glassfish REALM authentication. After that I write the following code:
    public void paymentPrepare() throws UnsupportedEncodingException, IOException {
       String postUrl = "https://test.payment.test/init/http";
       HttpPost postRequest = new HttpPost(postUrl);
       String id = "99999999";
       String password = "99999999";
       String action = "4";
       String amt = "1.00";
       String currencycode = "978";
       String langid = "ENG";
       String responseurl = "http://myhost:8080/EMBOWorkshop/secure/response.xhtml";
       String errorurl = "http://myhost:8080/EMBOWorkshop/secure/error.xhtml";
      trackid = "TRCK0001";
      udf1 = "Descrizione";
       StringEntity postParamsEntity = new StringEntity("id=" + id
       + "&password=" + password
       + "&action=" + action
       + "&amt=" + amt
       + "&currencycode=" + currencycode
       + "&langid=" + langid
       + "&responseurl=" + responseurl
       + "&errorurl" + errorurl
       + "&trackid" + trackid
       + "&udf1" + udf1);
      postParamsEntity.setContentType("application/x-www-form-urlencoded");
      postRequest.setEntity(postParamsEntity);
       DefaultHttpClient httpClient = new DefaultHttpClient();
       // Execute the HTTP POST
       System.out.println("Executing HTTP Post...\n");
       HttpResponse response = httpClient.execute(postRequest);
       // Check the HTTP status of the post.
       if (response.getStatusLine().getStatusCode() != 200 && response.getStatusLine().getStatusCode() != 201) {
       throw new RuntimeException("Failed: HTTP error code: "
       + response.getStatusLine().getStatusCode());
       // Create a reader to read in the HTTP post results.
       BufferedReader br = new BufferedReader(
       new InputStreamReader((response.getEntity().getContent())));
       // Read in all of the post results into a String.
       String output = "";
       Boolean keepGoing = true;
       while (keepGoing) {
       String currentLine = br.readLine();
       if (currentLine ==
    null) {
      keepGoing = false;
       } else {
      output += currentLine;
       System.out.println("Raw string result: \n" + output);
    The previous code works fine. I receive the response. But now I don't know how to continue. How can redirect the user to another site, and when the payment is finished, receive the response? Another question is, the user authenticate himself to access to the application. When the user will redirect to an external site, the glassfish session permits to get the response from the other host without require a new authentication?
    For the moment I don't know how to redirect the user, but I tried to write this method to obtain the last response:
      public void getResponse(HttpServletRequest request, HttpServletResponse response) {
      paymentId = request.getParameter("paymentid");
      result = request.getParameter("result");
      auth = request.getParameter("auth");
       ref = request.getParameter("ref");
      traind = request.getParameter("tranid");
      trackid = request.getParameter("trackid");
      udf1 = request.getParameter("udf1");
      responsecode = request.getParameter("responsecode");
    Is it correct?
    Thanks

    Now I'm able to redirect the user to the other page:
    ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();
    externalContext.redirect("http://stackoverflow.com");
    Now the problem is: once the user has finished to pay, the other site redirect the user to my site using one of the two JSF page I prepared for error or response like the following:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                    template="./index.xhtml"
                    xmlns:h="http://java.sun.com/jsf/html"
                    xmlns:f="http://java.sun.com/jsf/core"
                    xmlns:rich="http://richfaces.org/rich"
                    xmlns:a4j="http://richfaces.org/a4j"
                    xmlns="http://www.w3.org/1999/xhtml"
                    xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                    >
        <ui:define name="content">
            <center>
               An error occurred during  transaction
                #{participantBean.auth}<br />
                #{participantBean.responsecode}
            </center>
      </ui:define>
    </ui:composition>
    So, how can I get the GET parameters that the other host sent to me during the redirection?

  • ABAP need to connect to Webserivice and send a Request and get a response

    Hi All,
    i have a interfaace in SAP HCM, where i need to get data from given tables and convert it into XML and send it to Web service  as a #request, and then latter i need to get a response , where it is sucess or not ,
    I need to know exactly how to create a class in SE80 and what is the prerequiste for that , anyone , thankin g you
    Sridhar

    it as been sloved

  • Photoshop 10 crashes when I select quick edit and get no response when guided edit selected

    PS Elements 10 crashes when I select quick edit and I get no response when guided edit is selected.  Auto edit is working.  Help???

    It would help to have more information, but try this: Quit the editor, then restart it while holding down ctrl+alt+shift (command+option+shift on a mac). Keep the keys down till you see a window asking if you want to delete the settings file. You do.

  • My IP address is block and getting no response from AT&T

    I am a small business owner, website developer and hosting provider.  I have a VPS server with a handful of websites on it.  The IP address of this server is being blocked by AT&T. My clients are unable to send mail to anyone with a sbcglobal.net email address. After careful investigation by myself and my tech support team I have found nothing suspicious.  I have checked all logs, all user accounts and removed all forwarding email accounts.   I have visited the designated http://att.net/blocks page and have submitted the unblock request on 3 separate occasions over the last month and have received no response or resolution from AT&T. I have also emailed [email protected] and received no response. I called the main support line at AT&T and was transfered to the website department who then transfered me to the email department who told me I had the wrong department.   How can I get this resolved???   Any help would be greatly appreciated.

    Possibly you're using some old software that is trying to check for updates on a site that no longer exists and isn't handling it correctly? I dunno, that's just a guess. To make sure the traffic isn't coming from your machine, you could install [Little Snitch|http://www.obdev.at/products/littlesnitch> to monitor outgoing connections.
    As for your wireless network, if it's secured, it's unlikely to be neighbors. (The WEP/WPA2 thing does not sound right to me... it's got to be either one or the other. Dunno what to say about that.) To verify, try opening AirPort Utility, open your base station, click Advanced, then Statistics, then the Logs and Statistics button. In the new window, click the DHCP Clients tab... this will show you what clients are currently connected. Keep an eye on it from time to time to make sure nobody's on that shouldn't be. (Note that things like iPod Touches or iPhones can show up here if you've configured them to connect to your network, and may show up even if they're turned off.)

  • In ActionScript 2.0 , How can I send HTTP request and get the response in JSON format.

    I am using ActionScript 2.0 for my app development. I have checked XML and LoadVars class. These classes by default send/receive data either in XML or name/value pair format. I want to send data in JSON format and receive the response in JSON format. How can I achieve this behavior using AS2.0. I have noticed that AS3.0 has the capabilities to do so. My client platform doesn't support AS3.0. Can anybody suggest a way to achieve this?
    Thanks in Advance.

    Atlast I am able to find the solution for this problem. In the end solutioin is very simple.
    Following steps will help in sending request in JSON format.
    1. extend LoadVars class
    2. override toString method. (It should return JSON format )
    3. Use subclass to send the request.

  • I can't sync music and get an error message when I plug in my iPod

    I've had my iPod for a year or so, and mostly things have been fine. The battery-life was dying more quickly than usual, so I went to the Apple Store and got one of the salespeople to help me. They told me to Restore the iPod and see how it went from there. After a complete fiasco with that, I keep trying to plug in my iPod to update my library. However, when I plug it in, the iPod only flashes the charging button, and iTunes is unresponsive and sluggish for several minutes. Then a message pops up that says "The iPod 'iPod' cannot be synced. The required disc cannot be found."
    I have repeatedly gotten this message and really don't know what to do. Any help would be appreciated......

    You can also try out few things >
    1) check if the ipod constantly appears in mycomputer section .
    - if it does try changing the drive letter of the ipod and try to format the ipod drive(Right click format)
    2) if its not comin up in mycomputer then.. there has to be problem with the USB drivers in your computer
    you can try
    http://docs.info.apple.com/article.html?artnum=304508
    The best way to check whether the ipod is faulty or the computer is creating the problem is,
    connect the ipod to a different computer which has itunes on it(If possible)

Maybe you are looking for

  • Get highest value from 1 of the tables in a join between 2 tables

    Hi, i want to join 2 table: - SALES - MATERIAL These table are joined by: - Material ID - Sales date -> start date The problem is that it could be that 1 sales can have 2 records in material, but what i need to have is the latest record from material

  • Poor video quality in virtualbox vm

    I installed virtualbox-guest-utils. I have the modules vboxguest, vboxsf and vboxvideo loaded. I have VBoxClient-all & in my .xinitrc. I see 'direct rendering: Yes' in the output below (which I think means 3D acceleration is enabled) : glxinfo | grep

  • Migration plan from 2007 iMac to MacBook Air

    I'm looking to migrate from a 2007 iMac to a 2013 MacBook Air and have a recent wireless AC TimeCapsule that's presently backing up both Macs wirelessly.  I also have an older wireless N TimeCapsule that's in the closet and a new external storage dri

  • Newest firefox does not display aspects of simple html web site correctly

    Newest Firefox does not display certain web pages correctly whereas Safari does- previous versions of Firefox worked fine. The web pages are simple html using bumpers to position photos. Several of these pages allow "see through" in these bumper area

  • ITunes Upgrade Installation Problem

    A few days ago, I tried to upgrade my iTunes 8 to 9. The process stopped in the middle and quit. When I tried to open my iTunes, the icon on my 'Start' menu had changed to that paper-shaped icon with the picture of, like, a window or something. It's