Synchronous JDBC Execute

Hello all.
I want to call a stored procedure in a synchronous way.
So I use the following XML :
  <StatementName5>
<storedProcedureName action=” EXECUTE”>
    <table>realStoredProcedureeName</table>
<param1 [isInput=”true”] [isOutput=true] type=SQLDatatype>val1</param1>
</storedProcedureName > 
  </StatementName5>
However I want to get ouput parameters that are a string and a boolean.
Documentation doesn' detail the Response structure I must use.
Can you help me ?
Thanks.
J.C.

hi,
have a look at this weblog:
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
on how to find out the response easily
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • Problem in using JDBC Execute commands(Update & Delete Only) with af:Table

    HI Everyone,
    I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
    Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
    Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
    Please Help me to understand this problem and give me the solution for this..
    Thanks
    Fizzz...

    Hi frank,
    Thanks to reply me...
    I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
    Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
    Thanks
    Fizzz...

  • Synchronous JDBC adapter(receiver side) with stored procedure

    Hi experts,
    Can some database processing logic be included in receiver JDBC (synchronous) adapter...to put it simply
    I have synchronous JDBC adapter in the receiver side..Using this JDBC adapter I want to get some response back from the table..
    The requirement is not a simple fetch from the table..It involves some processing in the database side which I guess will be done by stored procedure..After this database processing , this output will be picked up by the JDBC adapter and will send to PI.
    How can this be achived ..Any Blog..
    Thanks
    Ayan

    Yes u can use stroed procedure and send back the response,
    refer this link for stored procedure structure.
    http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/frameset.htm
    chirag.

  • Synchronous Proxy to Synchronous JDBC scenario

    Hi,
    I have a scenario for a synchronous  PROXY  to a synchronous JDBC  scenario. I have set 4 message types .
    MT_PROXYOUT u2013 o/b synch with a response MT_PROXYIN
    MT_JDBC   - i/b synch with a response MT_JDBC_RESPONSE
    I then set up an interface mapping for both the request and response message interfaces. The design looks good but I got stuck in the configuration part.
    Since itu2019s a proxy sender, the sender agreement is not needed(Correct me if I am wrong). In the interface determination, there is provision for only the inbound interface which in case would be the JDBC (request/response) back to the proxy and the interface mapping is applied.
    So do I need just one interface determination from the proxy as sender and jdbc as receiver and also one receiver determination again with the proxy as sender and the jdbc as receiver. I am confused here because when I try to create a receiver determination for the response back from JDBC to proxy receiver , the interface mapping comes blank. Is it taken in account by the single receiver determination in synchronous to synchronous scenarios??
    Teresa

    Hi Teressa,
    Java Proxy to Synchronous JDBC scenario and SAP XI:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    ABAP proxies-
    Client proxy:
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Server Proxies
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Cheers
    Sunil

  • Synchronized JDBC

    Hi this is slighly off topic.
    I'm new to Oracle (not Java) and am calling stored procs,
    using prepareCall, via JDBC (level 4) on Oracle 8.05.
    My Java app will have multiple threads inserting/updating. Do I
    have to synchronize my java calls (performance issue) or can
    Oracle handle multiple synchronous JDBC calls. Generally I would
    synchronize and will do unless someone tells me otherwise.
    Thanks for any help
    Ritchie
    null

    Oracle will handle multiple synchronous JDBC calls. The standard
    row locking behavior will apply though.
    Hope this helps,
    -Chris
    ritchie turner (guest) wrote:
    : Hi this is slighly off topic.
    : I'm new to Oracle (not Java) and am calling stored procs,
    : using prepareCall, via JDBC (level 4) on Oracle 8.05.
    : My Java app will have multiple threads inserting/updating. Do
    I
    : have to synchronize my java calls (performance issue) or can
    : Oracle handle multiple synchronous JDBC calls. Generally I
    would
    : synchronize and will do unless someone tells me otherwise.
    : Thanks for any help
    : Ritchie
    null

  • Synchronous JDBC scenario

    Hi All,
    The scenario is
    SAP Portal will send data to XI using web service(SOAP Adapter) and then XI will post data in Database using JDBC adapter.
    When above scenario executes it is automatically creating response (Synchronous) once it post data in Database (New message in SXI_MONITOR). I have checked message interface both inbound and outbound are asynchronous. When I ran the same scenario using file adapter instead of SAP portal it is not creating new message.
    Please guide how to avoid creating new message in case of SAP Portal .

    Hi,
    The jdbc response is generated in synchronous cases.
    Make sure the webservice call that you are making is asynchronous.
    In case of file adapter the call you made was asynchronous, hence no response was generated.
    Check this blog for configuration for Capturing response message.
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    - Deepak

  • Synchronous JDBC Timeout

    Hi Experts, I have a synchronous proxy-jdbc with SQL_QUERY (Select) as action. When the query is executed directly in the DB, it's only taking 3-4 minutes to get the results. But when it's run thru PI, we always encounter synchronous timeout exceeded error (20 minutes). Since the query is getting results on time in the DB, I'm thinking the problem could be in PI side but I'm running out of options to check. Has anyone faced this problem before? Any inputs will be greatly appreciated. Thanks!

    Hi Mark,
    It looks like a network problem. Can you ping the database hostname in your PI system (create ping command in SM69)? Also take a look at this note: Note 1085539 - XI JDBC/FTP connection Test and XML Validation Application
    Hope this helps,
    Mark

  • Synchronous JDBC Call Commit

    Hi All,
    I have a Synchronous RFC(SAP) to Database(Oracle) scenario, the call to Database is via Stored Procedure in which i am inserting some data in database and returning a status flag back. I have two queries here:
    1. What if the stored procedure is executed successfully, I get a status flag as "Success" from database and just before the response was sent back to SAP there is some comunication failure or any error while connecting XI to SAP. What will happen to the data inserted in table. Will it be still commited or rollback? As it is Synchronous process the data should not be commited untill the requestor system gets back the response. Any clues on this?
    2. I need to pass a table type(basically a dyncamic array) as one of the parameters while invoiking Stored procedure. How it can be done?
    I am connecting to Oracle 10g.
    Looking for some quick answers.
    Thanks
    Amit

    1) You can set Transaction Isolation Level=Serializable
    To avoid data inconsistencies in the database when the isolation level is lowered, ensure that multiple database transactions cannot access the database simultaneously.
    2)
    <StatementName5>
    <storedProcedureName action=u201D EXECUTEu201D>
        <table>realStoredProcedureeName</table>
    <param1 [isInput=u201Dtrueu201D] [isOutput=true] type=SQLDatatype>val1</param1>
    </storedProcedureName > 
      </StatementName5>
    http://help.sap.com/saphelp_nw04s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

  • Response communication for synchronous JDBC channel

    Hi,
    We have a Proxy->XI-> JDBC synchronous interface. Is there a necessity for a response receiver communication channel? We just set one up and it always fails with a select statement "Select * from payroll where enddate = "20081012". I never set up this SELECT statement. Just confused if I really need this response communication channel. Any ideas?
    Teresa

    Hey
    No,you don't need a separate receiver communication channel for response.
    JDBC on receiver side can support synchronous interface.
    >>fails with a select statement
    My guess is that either your mapping is wrong or the receiver/response message structure you have created in Data type is in wrong format.
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    Thanx
    Aamir
    Edited by: Aamir Suhail on Jul 13, 2008 10:05 PM

  • Synchronous JDBC structure

    Hi all,
    I have a scenario involving SOAP and JDBC with synchronous calls.
    I have created the source structures with request and response and have no doubt about it.
    The doubt is on the target side (JDBC),
    Have a structure as,
    Name, EmpID and location. Usually the structure for async JDBC goes as,
    Project
      -> Statementname
         -->Storedprocedurename
            -->Action
            -->Table
            -->Name
                -->isInput
                -->type
            -->EmpID
                -->isInput
                -->type
            -->Location
                -->isInput
                -->type
    The response required for this structure would be the Emp ID field. Actually, the source data will send data for Name and Location fields leaving the Emp ID field empty. After it reaches the DB, an Emp ID is generated by the Stored procedure and all the 3 fields is given back as the response with data.
    Do i have to create 2 different JDBC structures, one for request and one for response and to enter isOutput attribute in the response structure or is one structure enough and i create the isInput attributes and the isOutput attributes in the same structure.
    Help me out guys !

    Do i have to create 2 different JDBC structures, one for request and one for response and to enter isOutput attribute in the response structure or is one structure enough and i create the isInput attributes and the isOutput attributes in the same structure.
    You need seperate structure for response.
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

  • Synchronous  JDBC Receiver Adapter

    Hi,
    My requirement is JDBC--- XI --- JDBC (Sync) — JDBC.
    Let me be more precise about the above scenario.
    JDBC sender picks up a record from DB1 and sends to DB2 and gets a response from DB2 and send the response to DB3.
    I am sure this can be handled only through BPM.
    But my question will a JDBC Receiver adapter gets a response back to XI. If this is possible , can some one tell me how can I achieve it.
    Thanks
    Shaik

    <i>I am sure this can be handled only through BPM. </i>
    BPM required.
    <i>
    But my question will a JDBC Receiver adapter gets a response back to XI.</i>
    Yes.
    The weblog by Bhavesh would also b helpful.
    Regards,
    Prateek
    Message was edited by:
            Prateek Srivastava

  • Synchronous JDBC - message timeout

    Hi,
    I have a scenario RFC-XI-JDBC synch. I am getting a message timeout error while trying to post large data volume. Apparently the sync message is geting expired after timeout (default 180 sec).
    I found SAP note 730870 (question 14) suggests to increase the property xiadapter.inbound.timeout.default. However, SAP note 791379 says you should never change this value.
    Is anyone has chaged this value in oreder to optimize performance ? Pls suggest.
    Also pls let me know if you have any other suggestion.

    As per the documentation
    http://help.sap.com/saphelp_nw04s/helpdata/en/29/22ee41c334c717e10000000a155106/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bd5950ff-0701-0010-a5bc-86d45fd52283
    You should increase the timeout from 180000(default) to 240000.
    or 240 sec.
    please visit
    Re: MessageExpired because of large amount of data

  • Synchronous JDBC select

    hi,
    Based on the call from webservice I need to select data from two tables and send back. Expected output is one row from one table and multiple rows from the other. So I created a structure as shown:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_DB_PS_Req xmlns:ns0="http://timken.com/poc/webservices">
    - <Statement>
    - <Table action="SELECT">
      <table>poc.order_operation</table>
    - <access>
      <plant />
      <work_center_id />
      <work_center />
      <operation_status />
      <material_produced />
      <order_quantity />
      <quantity_uom />
      <quantity_completed />
      <quantity_scrapped />
      <activity />
      <std_activity_quantity />
      <actual_activity_quantity />
      <activity_quantity_uom />
      <activity_start_time />
      <activity_end_time />
      <description />
      </access>
    - <key>
      <order_number>String</order_number>
      <operation_id>String</operation_id>
      <routing_seq_num>int</routing_seq_num>
      </key>
      </Table>
      </Statement>
    - <Statement1>
    - <Table action="SELECT">
      <table>poc.operation_material</table>
    - <access>
      <material_id />
      <material_source />
      <std_material_usage />
      <actual_material_usage />
      <usage_uom />
      </access>
    - <key1>
      <order_number>String</order_number>
      <operation_id>String</operation_id>
      <routing_seq_num>int</routing_seq_num>
      </key1>
      </Table>
      </Statement1>
      </ns0:MT_DB_PS_Req>
    I am unable to get any output. When I check in RWB the ouptput is shown as:
        <?xml version="1.0" encoding="utf-8" ?>
    - <ns0:MT_DB_PS_Req_response xmlns:ns0="http://timken.com/poc/webservices">
      <Statement_response />
      <Statement1_response />
      </ns0:MT_DB_PS_Req_response>
    Can someone help me with this.
    thank you

    Hi,
    Check if the Response Messge Type is of this format.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_DB_PS_Req<b>_response</b> xmlns:ns0="http://timken.com/poc/webservices">
    <Statement<b>_response</b>>
    <b><row></b>
    <plant />
    <work_center_id />
    <work_center />
    <operation_status />
    <material_produced />
    <order_quantity />
    <quantity_uom />
    <quantity_completed />
    <quantity_scrapped />
    <activity />
    <std_activity_quantity />
    <actual_activity_quantity />
    <activity_quantity_uom />
    <activity_start_time />
    <activity_end_time />
    <description />
    <b></row></b>
    </Statement<b>_response</b>>
    <Statement1<b>_response</b>>
    <b><row></b>
    <material_id />
    <material_source />
    <std_material_usage />
    <actual_material_usage />
    <usage_uom />
    </row>
    </Statement1<b>_response</b>>
    </ns0:MT_DB_PS_Req>
    Regards,
    Bhavesh

  • Execute two synchronous mappings in BPM

    Dear All,
    i ahve the the follwing sceanrio to be execute in BPM.
    My requirement is to execute two synchornous mappings which has one source structure coming in file format
    i have mappe this message type with bothe the target messag etypes.
    first mapping uses the synchronous webservice..once this webservice is execute it return the response,,now depending on the reponse of the webservice my sencond mapping i.e synchronous Jdbc mapping which will select a record from ORACLE has to execute and then the selected record has to be passed back to file system.
    My scenaris is 1 file source xml to 2 synchronous mappings .these amppings shoul execute ina sequesnce
    file(one source xml)-->sync Webservice mapping(returns success) and
    same file(one source xml)-->sync jdbc mapping(execute depending on the success response from Webservice)
    i configured   receive sync->send sync(webservice syn interface)->switch(check success response from webservice)->sendsync(jdbc sync)->send response from jdbc(close s/a bridge).
    I am wondering how will the data from one source XML will flow into two mapping interfaces?
    do i need to change any steps in BPM.
    please suggest
    what will be the correct steps i need to configure in BPM
    Edited by: Rohan Patil on Jun 29, 2010 3:03 PM
    Edited by: Rohan Patil on Jun 29, 2010 3:05 PM

    Thanks Shabarish,
    i designed the same steps in IP...it worked on the very first shot ...
    i waqs thinking i might get some erros but both the mappings got executed in a sequnece successfully..
    Thanks for your help.

  • No response message in Proxy to JDBC synchronous scenario

    Dear Team,
    I am working on synchronous scenario Sender ABAP proxy <===> SAP PI 7.31 <===> Oracle Database.All the necessary proxy configuration has been successfully tested.
    Business Scenario:
    ABAP proxy will send a single Vendor Id to Oracle DB as request and in return , it has to retrieve all the columns related to Vendor as response.Oracle Database stores all the Vendor information.There are 11 columns including the vendor Id in the view for the Vendor records.
    Design :
    For Request structure:
    a-->Created MT for Sender ABAP Proxy with only 1 field for Vendor Id.
    b-->Created MT for Receiver JDBC  with Action as SELECT , Table with "View Name" , Access with Constant Blank for all 11 column and Key as Vendor Id.
    I have been following  the link and Bhavesh Kantilal document.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/7b7171fde93673e10000000a114a6b/content.htm?frameset=/en/44/7b7855fde93673e10000000a114a6b/f
    rameset.htm&current_toc=/en/ca/b977f1c7814201954f20bb87ad7aab/plain.htm&node_id=71
    For Response structure:
    Created MT for Receiver JDBC with All the column names.
    Created MT for target ABAP ECC with the same 11 column name of JDBC response.
    Note :
    1.Database team shared a excel file as a sample payload which has all the column names of a vendor and I created my DT with the same naming conventions as they are maintaining in their database i.e. Column names are in CAPs, in the same order and even the special characters in the column name.
    2. The PING test connection for Cc works fine to database.
    Please read out my queries as the I am not receiving any response from Oracle DB and gives error as timeout exception:
    1.Since I am trying to retrieve all the column of the view , am I doing the correct procedure of putting all the column name in the JDBC request structure and making a Select statement. Can I add < * > to fetch all the column name and if so where can I add it.
    2. Whats the difference between SELECT and SQL_QUERY and on what circumstances I can add it?
    3. How can I test ICO in ID?
    4. Can I use any SOAP tool to test the messages? Is there any functionality in NWA to test the messages directly to JDBC .
    Hope all your inputs can improve my design part.
    Regards
    Rebecca

    Hi Rebecca,
    Did you go through all of these links below?
    PROXY to JDBC- SYNC
    Proxy to JDBC Sync, with Idoc Receiver
    JDBC to PROXY Sync Scenario | SCN
    JBDC Receiver Insert Statement Response
    Re: Synchronous JDBC select
    receiver JDBC structure
    Regards,
    Jannus Botha

Maybe you are looking for

  • Why can't I make a genius bar reservation online?

    I have spent nearly 30 minutes trying to make a Genius bar reservation. Website site says "it's easy and quick."  Well, no, it isn't. It used to be, but it isn't any longer. I keep getting to the point where I am asked to pay $29 for a phone call, or

  • BDC Recording for 3 transactions in SD

    i need to cancel contracts using these transaction sequentialy i.e VF46 VF11and VF42 using bdc .how to go about it in recording for 3 transactions regards shankar

  • I cannot seem to get the speed of my Ipone 4S to improve

    The Iphone 4S is connected to my Airport Extreme which is in a network with an Express. The speed i get on my phone or ipad (second generation) seems to be maximized at 65 Mb/s, is that normal?

  • Lightroom 5.6 cc for Mac and Canon 6D file corruption when adding to catalog

    Hello, I was testing my newly purchased (August 5, 2014) Canon 6D camera shooting out the window of a moving car and also by walking around. I was using the Scene Intelligence Auto setting, shooting in single shot mode and continuous shooting mode. I

  • Processing time is RIDICULOUS.

    I am getting sick and tired of WAITING on A3 to batch process my adjustments then WAITING for exporting.  I shot a powerlifting meet in Vegas last weekend.  Each day has 2200 or so photos.  Batching on ONE group is taking 3 hours or so and exporting