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

Similar Messages

  • 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

  • Jdbc structure

    Hi
    we use a structure in sender comm channel only ie
    < mesage name>
      <statement name>
    <db  tablename action= >
        <table realtable name>
           <access>
             col1--
             </access>
    while we dont use it in recieverside,what is the the reason for it.

    Hi Raghu,
    The structure which u mentioned is for Receiver ....
    In Receiver JDBC adapter we dont have the provision to mention the things like create or insert...Table name
    In sender adapter we have that facility to use
    This structures are ment like that
    JDBC Receiver
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    Regards
    Seshagiri

  • 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 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>

  • Receiver JDBC structure and Mapping

    Hello everyone,
    Scenario - WS (async) -> PI 7.1 -> JDBC (sync) -> PI 7.1 -> WS (async)
    My question is - In my request structure (from WS), I have a field "Transaction ID". This field is not present in the target DB, but when I get the response back from DB, I need to insert this transaction id in the response back to WS.
    I am aware that there is an option in the request query (passing parameter and getting back the same value) and this can be achieved through XSL mapping. Can this same functionality be achieved through Graphical Mapping?
    In other words, if I pass Transaction Id in my request query, can I get it back in the response? Just to remind, Transaction Id is not available in DB.
    Any help / suggestion will be highly appreciated.
    Thanks,
    Abhi

    Abhi,
    Although your post is an old one, but since it is not yet closed, i assume that you are still working on this.
    I believe you have a view from where you are doing the select. You can give it a try with the following query -
    SELECT V1.<your other fields that you want to select>, V2.TRANSACTIONID,                        
              FROM <ViewName> V1,
                              (SELECT "TRANSACTIONID" AS TRANSACTIONID FROM DUAL) V2
              WHERE <Condition>
    This will simply create a temporary view V2 for holding the transaction id, and it will pick the value that you are passing with each message and in the response to the SELECT, it will always bring back the Transaction Id that you passed.
    I would recommend that you use an XSL Mapping for this. Hope this helps.
    Regards,
    Neetesh

  • 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

  • Regarding source jdbc structure creation

    Hi,
    I am doing jdbc sender scenario the source structure I am getting form xsd.
    in jdbc sender data type root node should be created "row" and message type  . is compulsory?
    if i am getting xsd how can i deal that one.
    Thanks & Regards
    venkat.

    I am doing jdbc sender scenario the source structure I am getting form xsd.
    in jdbc sender data type root node should be created "row" and message type . is compulsory?
    --> Yes..
    if i am getting xsd how can i deal that one.
    ---> We can make the changes at IR ..
    Regards,

  • 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

  • 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

Maybe you are looking for

  • Could I know how to inquiry the time of activate for my MacBook Air?

    Could I know where can I inquiry the time of activate for my MacBook Air??   The Serial No is : C02******JYC In addition, I have another question, after bought the Mac, I found there is a screw come out and we can touch it clearly, could I know why?

  • Resetting Themes to default appearance

    Is there a way to revert a theme to a default as it was when it was installed? I recently chose the "portfolio B&W" theme and deleted the button/menus for "play movie" and "scene selection" in an attempt to customize a theme. Now when i choose ANY th

  • How to maintain Hierarchy?

    Dear all, We create a hierarchy on CM Account(InfoObject),Every month there ara some new records should be upload to it. The problem is that after upload new records the hierarchy wouldn't maintain,so the report result is wrong. I want to kown how to

  • Regd. system status in REFX

    Hi RE-FX experts, How to set / change system status form "CRTE" to "REL" in BAPI:  BAPI_RE_PR_CREATE . How to do it from the BAPI ? So that i can see in the transaction : REBDPR for Properties. Thanks in advance. Srini.

  • Spring-TopLink Integration Available

    A preview of our integration with Spring is available now. http://www.oracle.com/technology/products/ias/toplink/preview/spring/index.html We are working on contributing this into Spring and hope to have it available from the Spring Framework website