Multiple STATEMENT nodes in target structure for JDBC adapter

Hi All,
I have a file to JDBC scenario . At the receiver side we need to update two tables simultaneously .
So in the target structure for JDBC , is it possible to have two STATEMENT nodes , so that 2 tables can be updated simultaneously.
Please help.
Thanks & Regards,
Loveena.

Hi,
U can do tht..please see below link..
http://help.sap.com/saphelp_nw04/Helpdata/EN/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
Regards,
Manisha

Similar Messages

  • Source of xslt mapping and XSD/ XMT target structures for standard Idocs

    Hi,
    I am working on R/3 - XI - ICH scenario. I need xslt mapping and XSD/ XML target structures for standard IDoc like PROACT01,DELFOR01, DELVRY03. I tried to search it on marketplace but couldn't find it there. As per configuration document, these things are shipped with XI mapping content in live cache CD. But I don't have this CD with me. Can anybody tell me the source for these target structures and mapping program. ( Please share marketplace, site link or send me across the mail [email protected])
    Thank you in advance.
    Anand More.

    Anand the other option is to import the corresponding idocs into your integration repository and then you can view the generated XSD there.
    As regards XSLT mapping, you need to basically first identify as to what form you want to transform your source idoc into.
    For some help on XSLT mapping check the following threads,
    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https%3A//forums.sdn.sap.com/topusers.jspa%3FforumID%3D44
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-6&contenttype=url&content=https://Process Integration (PI) & SOA Middleware
    Also have a look at my code samples,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic xslt mapping in sap xi, part i.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a
    cheers
    Sameer

  • Question about Sender and Receiver Structure for JDBC

    Dear All,
    I want to know why there is a fixed format for sender and receiver structure for JDBC. why cant we use the structure like what we want? explain me in detail.
    Thanks

    Good Question:
    We have to create our data structure based on the existing database table structure. While reading or writing , JDBC adapter convert our data type structure in to SQL Query Statements that matches Table structure.

  • "Recordsets per Message" for jdbc adapter

    Hi all,
    is "Recordsets per Message" kind of option is available for JDBC adapter.
    Any help will be appriciated
    Thanks
    -Kulwant

    Hi Kulwant,
    its not available.
    You can a stored procedure whick picks only certain number of records per each call.
    Regards
    Inder

  • About 2 questions for jdbc adapter.

    1.
        which transaction isolation level should i set for jdbc sender adapter to guarantee data to be selected correctly?
        not error occurs.
    2.
        how to reslove time_out error for jdbc adapter. especially sync query in volume data case.

    Hi,
    If you want to maintain the sequence and data consistency, then use isolation level "serializable" and QoS as EOIO.
    Set / Increase the time_out parameter in the adapter module.
    Regards,
    Neetesh

  • How to increase the thread count for JDBC adapter

    Hi ALL,
                Could someone advice me on how to increase the thread count for JDBC Adapter in Visual Admin:
    JDBC_http://sap.com/xi/XI/System.Call.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Recv.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Rqst.maxConsumers 5
    JDBC_http://sap.com/xi/XI/System.Send.maxConsumers 5
    I need to increase them to 10.
    Regards,
    Xier

    hi check the below links:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/806e75a0-0e01-0010-2587-fc518de8ac1a
    admin manual:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fdb09490-0201-0010-e09e-a76388646ad0
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Idoc to jdbc mapping duplicate source node to target structure

    Dear all,
    I am working on PI 7.1
    My sceniro
    IDOC to JDBC  [sap to mssql ]  where the target is a table structure shown below: I execute a stored procedure to insert the below message type into sql table.
    <ns0:MT_SP_LFBK xmlns:ns0="http://test.com">
    - <Statement_Name>
    - <storedProcedureName action="EXECUTE">
      <table>spr_test</table>
      <BANKS type="Char">BOA</BANKS>
      <BANKL type="char">122207</BANKL>
      <BANKN type="char">4555--0</BANKN>
      <LIFNR type="char">1100000218</LIFNR>
      <KOINH type="char">varchar</KOINH>
      <BKONT type="char">01</BKONT>
      <BANKA type="varchar">S.A.</BANKA>
      </storedProcedureName>
      </Statement_Name>
      </ns0:MT_SP_LFBK>
    The mapping is between source CREMAS02 and the above target structure. Everything works fine.
    The problem is when the  vendor has more than one bank account number the IDOC CREMAS02 replicates the below segment E1LFBKM for each BANK account information. Since target and source are mapped one to one how can i map the second bank account information to the same target structure or genereate a new target Message type for the second bank account  information and send it to sql ?
    <E1LFBKM SEGMENT="1">
      <MSGFN>005</MSGFN>
      <LIFNR>110000021</LIFNR>
      <BANKS>BOA</BANKS>
      <BANKL>122207</BANKL>
      <BANKN>4555-0</BANKN>
      <BKONT>02</BKONT>
      <BANKA>S.A.</BANKA>
      <BNKLZ>3000000</BNKLZ>
      </E1LFBKM>
    Thank you ,
    Teresa

    Hi Teresa,
    which segment have you mapped with <storedProcedureName action="EXECUTE"> ?
    Because according to me , if you send <E1LFBKM> to <storedProcedureName action="EXECUTE">
    , you will be able to use your stored procedure several times, in fact each times that you have a <E1LFBKM>.
    Reminds: inside <Statement_Name> you can do several SQL actions like execute one or several stored procedures (could be different).
    Of course, after that your table should accept to have several bank account for a same customer.
    So to have something like that:
    <Statement_Name>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    <storedProcedureName action="EXECUTE">
    </storedProcedureName>
    </Statement_Name>
    regards
    mickael

  • Create a empty node in target structure

    Hi,
      The scenerio is idoc(HRMD_A07) to file
      my target structure is
      <Record>
        <Record1>
          field 1
          field 2
          field 3
       <Record1/>
       <Record2>
          field 5
          field 6
       <Record2/>
        <Record3>
          field 7
       <Record3/>
    <Record/>
    Record is mapped to EP1LOGI ,
    Record1 is mapped to E1P0001 and the fields from this segment are mapped to field 1, 2 and 3
    Record2 is mapped to E1P0002 and the fields from this segment are mapped to field 5 and 6
    Record3 is mapped to E1P0105 and the fields from this segment are mapped to field 7.
    Say in one EP1LOGI i do not have E1P0105 in the source. NOW i would like to get a empty node
    <Record3> <Record3/> in target structure.
    Please advice...
    Regards
    Niladri

    My content conversion is
    Record.fieldFixedLengths         0
    Record.endSeparator              'nl'
    Record1.fieldFixedLengths     8,4,10,2,8
    Record1.endSeparator           ','
    Record2fieldFixedLengths    40,40
    Record2endSeparator           ','
    Record3fieldFixedLengths     241
    Record3endSeparator          'nl'
    My source idoc does not have email id ( field7) for the first employee and has email id for teh second employee.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_ELEARNING_dummy xmlns:ns0="http://TFL.com/E-learning/Kallidus">
       <Record>
          <Record1>
             <PERNR>01221690</PERNR>
             <BUKRS>1010</BUKRS>
             <KOSTL>0000040063</KOSTL>
             <PERSK>35</PERSK>
             <ORGEH>50022222</ORGEH>
          </Record1>
          <Record2>
             <VORNA>Barry</VORNA>
             <NACHN>Tredinnick</NACHN>
          </Record2>
          <Record3/>
       </Record>
       <Record>
          <Record1>
             <PERNR>01221793</PERNR>
             <BUKRS>1010</BUKRS>
             <KOSTL>0000040083</KOSTL>
             <PERSK>35</PERSK>
             <ORGEH>50295392</ORGEH>
          </Record1>
          <Record2>
             <VORNA>David</VORNA>
             <NACHN>Sinclair</NACHN>
          </Record2>
          <Record3>
             <USRID_LONG>email addtress</USRID_LONG>
          </Record3>
       </Record>
    </ns0:MT_ELEARNING_dummy>
    Now i get the file as ---ALL IN one line
    01221690101000000400633550022222' ,'Barry                                   Tredinnick                              ' ,'                                                            ' ,'01221793101000000400833550295392' ,'David                                   Sinclair                                   ' ,' email address
    I cannot figure out why i am getting ',' before the second employee number 01221793...
    I want to get the file as:
    01221690101000000400633550022222' ,'Barry   Tredinnick          ' ,'              
    '01221793101000000400833550295392' ,'David    Sinclair            ' ,'email address
    Kindly help

  • Update statement problem for jdbc adapter

    Hi all
    In the jdbc sender adapter, I configured as follows:
    Query statement
    select * from pickdiff where tid is null
    Update statement
    delete from pickdiff where tid is null
    I got following error message:
    Database-level error reported by JDBC driver while executing statement 'delete from pickdiff where tid is null'. The JDBC driver returned the following error message: 'java.sql.SQLException: [SQLServer 2000 Driver for JDBC][SQLServer]Die Unterabfrage gab mehr als einen Wert zurück. Das ist ungültig, wenn die Unterabfrage auf =, !=, <, <= , >, >= folgt oder als Ausdruck verwendet wird.'. For details, contact your database server vendor.
    If I change the Update statement to
    update pickdiff set tid = 'sapxi' where tid is null
    Then everything is ok.
    Doese any one have some idea about this problem?
    Regards
    Hui

    Hi,
    The below statements are from SAP help...
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/frameset.htm
    The UPDATE statement must alter exactly those data records that have been selected by the SELECT statement. You can ensure this is the case by using an identical WHERE clause. (See Processing Parameters, SQL Statement for Query, and SQL Statement for Update below).
    &#9679;      Processing can only be performed correctly when the isolation level for transaction is set to repeatable_read or serializable.
    SQL statement for query: SELECT * FROM table WHERE processed = 0;
    SQL statement for update: UPDATE table SET processed = 1 WHERE processed = 0;
    processed is the indicator in the database.
    please see if setting the isolation level would help....Also are you getting this error always or is it intermitent ?
    Thanks,
    Renjith

  • Writing Select statement for JDBC Adapter

    Dear frndz,
       Please guide me, i have to pick record form the Oracle D/B,
    and this has to be updated in the Sap Table. For this scenario, tell me where i have to write the select statements to fetch the particular record.I was asked to use the jdbc adapter for this d/b link.
    Thanks in advance
    Karthikeyan

    Hi karthikeyan,
    You have to use a sender JDBC adapter.
    Just follow the instructions in this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Previously, you must install Oracle drivers so that JDBC works properly.
    Regards,
    Carlos

  • What will be input for custom module developed for JDBC adapter

    Hi,
    I have a scenario SQLDB -> Xi -> R3 .
    Here I have added a custom module before callsapadapter module.
    As I know the sequence of module calling will be as follows :
    1. Standard jdbc adapter
    2. custom module
    3. callsapadapter
    Standard jdbc adapter has a select query . After that what will be the input format for my custom module .Will it be the xml structure of my source Data type or will it be a resultset or will it be a inputstream(stream of xml fomat????).
    And then in which format i need to generate the output format for CallSapAdapter.
    Regards

    Hello Moni,
    SAP has a wonderful feature in ABAP. There are some Runtime Errors that you can <i>catch</i>. This is somewhat similar to the Exception Handling procedure in Java / C++. So here's how you go about it....
    Sometimes there might some calculations that we do, multiplication , for example, where the result of the arithmetic operation is known only at run-time. And the recepient for this result may not always be of the right type to take the result. Consider the following code:
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
    c = a * b.    " 99999999 * 99999999 "
    write c.
    This program will certainly give a short dump saying that there was an arithmetic overflow. But we can actually avoid this Shor Dump and handle the situation quite elegantly. consider the following.
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
       c = a * b.    " 99999999 * 99999999 "
    ENDCATCH.
    if sy-subrc ne 0.
      write: 'There was an arithmetic overflow in the calculation.'
    else.
      write c.
    endif.
    This way you can actually avoid the short dump and make the system set a value for sy-subrc. Based on the avlue of the sy-subrc, you can go ahead with further processing / error-handling, as the case may be.
    Here, ARITHMETIC_EXCEPTIONS is called an <i>exception group</i>. For more information on what other run-time errors can be <i>caught</i>, and What the various exception groups contain, please refer to the online documentation for the CATCH statement.
    Regards,
    Anand Mandalika.

  • Adapter Engine Prioritation for JDBC Adapter

    Hi ,
    I am currently working on an Idoc to Jdbc Scenario. The jdbc adapter is used to push the messages to three different legacy systems through three different scenarios. I need to prioratize the messages of the legacy systems(For Eg. Legacy System A is more critical than Legacy System B) in adapter engine or in adapter itself.
    Regards,
    UserPI

    Hi
    We are having the same problem. Once one of the interfaces which is using a JDBC communication channel is processing a bigger amount of messages, the JDBC adapter seems to be blocked exclusively for that interface. All other interfaces using the JDBC adapter are on hold (status "Scheduled" in Adapter Engine Message Monitoring). I set up message prioritization in RWB (Component: Adapter Engine), but it doesn't help (nothing different from before).
    Does anybody has a hint on that?
    Thanks
    Philippe

  • How to create multiple segments on the target structure of an IDOC

    Hi All
       I am working on the Shipment Confirmation Interface( Message Type SHPCON ) which is FILE to IDOC Scenario. I have a segment called E1EDL18 which occurs only once on the target side of the idoc. Now I have to created multiple E1EDl18 segments for the Qualifiers ORI, PGI and PCK. I treid to send a constant ORI,PGI,PCK and then used an user defined function which splits the constant at COMMA and then I am assigning to the target field QUALF. In the display queue for QUALF I see three values with context but still only one E1EDL!* segment is created. Please let me know how to create multiple E1EDl18 segments for three qualifiers.
    Thanks
    Naga

    In message Mapping, just right click on the segment and click on duplicate subtree. now it will create you another segment with same name and fields in it..
    you can hard code the Qual, or you can map the required source field into it.

  • Dynamic Looping of node in target structure

    In Graphical mapping ,I am using UDF, which is returning rows from 0 to N.
    Following is my Target struct
    <Product>
         <A>
         <B>
    <Control>  0 to Unbound
         <M>
         <N>
    Depeding on the result of UDF ,i need create multiple nodes of <Control> which is 0 to unbound st. Ex: If UDF return 3 rows
    <Product>
         <A>
         <B>
    <Control>
         <M>
         <N>
    <Control>
         <M>
         <N>
    <Control>
         <M>
         <N>
    How to achieve this looping ?

    map the output of the UDF to the product node
    I hope you mean to say the Control node (which needs to be repeated)

  • Message structure for JDBC receiver adaptor

    Hi experts,
    IN JDBC reciever adaptor i want to insert 3 fields in table.....!
    the structure i have created is as follows:
    TestReceiver
    StatementName
    Test
        Action (attribute)
       TABLE
       access(1-unbound)
           FirstName
           MiddName
           LastName
    and source is
    testSender
      Row(1-unbound)
        FirstName
        MiddleName
        LastName
    I am getting error ="MAPPING">EXCEPTION_DURING_EXECUTE
    can somebody plz tell me what is wrong?
    Thanks
    Rohan

    <?xml version="1.0" encoding="utf-8"?>
    <ns:TestSender xmlns:ns="http://test.com/EmpData">
    <Recordset>
         <Row>
              <FirstName>Aaa</FirstName>
              <MiddleName>Bbbbb</MiddleName>
              <LastName>Ccccc</LastName>
         </Row>
    </Recordset>
    </ns:TestSender>

Maybe you are looking for

  • How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ?

    hello, How can i upload two different logos for 2 sub sites [which falls under one super site ] in share point 2013 ? thanks, Jay

  • Problems with  File Upload Example

    Hi, I follwed all the steps as in File Upload Example, still I am getting this exception, Exception occured in J2EEC Phase com.sun.enterprise.deployment.backend.IASDeploymentException: Deployment Error -- Error loading deployment descriptors for _lin

  • N95 8gb video call

    when in video calls we need a option to turn the camera light on or off . That's so we can see our image in our calls when there is no back ground light.

  • More Aperture 3 bugs....Grrrr

    The export to email options are totally messed up. You can select the size of the photo but aperture happily ignored that and uses it's previousm setting. You can see this by quiting aperture, going into preferences again and there is the old value.

  • PCard Functionality in Financials 8.8 SP1

    We are looking at implementing the Procurement card functionality in PeopleSoft Purchasing. We are in the very preliminary stages of this project and are in need of some further clarifications about how this is supposed to work. If there are any exis