Jdbc update_insert

Hi
I have a requieement like to update a record if key values are same else insert the record since it might be new record.
I see on jdbc recv structure ,we need to define the keys in the table. But what are they mapped to ? these keys are also present in access tag. Should the mapping for key elements be same as access eleements since key elements are also part of access tags.
is there any blog ofr update_insert //keys...?
Please give your suggestion.
Thanks

Eg:
root>
.<StatementName1>
..<dbTableName action= u201CUPDATE_INSERTu201D>
..<table>realDbTableName</table>
...<access>
......<SSN>val1</SSN>
......<col2>val2</col2>
...</access>
...<key1>
.....<SSN></SSN>
....</key1>
.........</dbTableName>
.</StatementName1>
</root>
we define this structure in Data type: and call this structure in the map.
since this is receveing side jdbc structure ,we map it to the source fields... so we map target SSN to source SSN
target SSN is also in the key tag node : here should we map the target SSN node to source SSN node ?
Thanks

Similar Messages

  • JDBC UPDATE_INSERT not working

    Hi Experts,
    I have an issue with the JDBC Update_Insert action with the SQL database.
    When I tried with the Update function and Insert Function seperately the data was updating in the database fine.
    When I use the UPDATE_INSERT action with the same data getting below error.
    Error while parsing or executing XML-SQL document:
    Error processing request in sax parser: Error when executing statement for
    table/stored proc. 'CUSTMAST' (structure 'Statement'):
    com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be
    truncated.
    And the query that was running in the background was as follows
    10.04.2014 16:34:45
    Information
    JDBC
    Adapter Receiver processing started, required QoS ExactlyOnce
    10.04.2014 16:34:45
    Information
    JDBC
    Adapter Receiver Channel CC_Laserfische_FetchDate:  processing started; party *
    / service SYS_DB_BIS.
    10.04.2014 16:34:45
    Information
    UPDATE CUSTMAST SET COMP_CODE='ESSR', CUST_ID='20035780',
    CUST_NAME='PRAVEEN', CITY='HYD', PINCODE='500060', COUNTRY='IN',
    EMAIL='[email protected]', REC_INSR_DATETIME='2014-04-10 16:34:45' WHERE
    (COMP_CODE='ESSR' AND CUST_ID='20035780')
    10.04.2014 16:34:45
    Information
    INSERT INTO  CUSTMAST (COMP_CODE, CUST_ID, CUST_NAME, CITY, PINCODE,
    COUNTRY, EMAIL, REC_INSR_DATETIME) VALUES ('ESSR', '20035780', 'PRAVEEN', 'HYD',
    '500060', 'IN', '[email protected]', '2014-04-10 16:34:45')
    When I try this query manually in the database it is working fine but when I trigger the data from SAP PI 7.1 we are facing error as mentioned above.
    Please help me with this.
    Thanks in advance.

    Hi Praveen,
    Error "String or binary data would be truncated." comes when the incoming data length is more than the length specified in Database.
    Cross check the lengths in Database with your data.
    Reagrds,
    Sudhasree

  • ABAP Proxy to JDBC : UPDATE_INSERT issue.

    Dear Friends
       I am inserting one ekpo records to MS SQL server. my structure and records are below.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_EKPO_RECEIVE xmlns:ns0="http://gspcgas.net/asset_rfid">
    - <StatementName>
                   - <dbTableName action="UPDATE_INSERT">
                      <table>EKPO</table>
    - <access>
               <EBELN>4500000687</EBELN>
               <EBELP>00010</EBELP>
              <MATNR>000000000100000012</MATNR>
              <MENGE>1.000</MENGE>
              <MEINS>EA</MEINS>
              <WERKS>1000</WERKS>
              <LGORT />
              <AEDAT>2011-12-12</AEDAT>
              <BUKRS>1000</BUKRS>
              <ANLN1>010023000315</ANLN1>
              <PSTYP>0</PSTYP>
              <KNTTP>A</KNTTP>
              <LOEKZ /> <-- during insertion I am not updating this field ( this is for item deletion)
      </access>
      - <Key1>
              <EBELN>4500000687</EBELN>
              <EBELP>00010</EBELP>
      </Key1>
      </dbTableName>
      </StatementName>
      </ns0:MT_EKPO_RECEIVE>
    this works absolutly fine and record inserted in the MS SQL server.
    problem occurs when in second run my user is changing the fields means he deletes the item  from the PO,  but it is not reflecting in the data base. only I can see previously created entery not the changed one. I have below payload in RWB for the receiver communication channel. 
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_EKPO_RECEIVE xmlns:ns0="http://gspcgas.net/asset_rfid">
    - <StatementName>
                   - <dbTableName action="UPDATE_INSERT">
                      <table>EKPO</table>
    - <access>
               <EBELN>4500000687</EBELN>
               <EBELP>00010</EBELP>
              <MATNR>000000000100000012</MATNR>
              <MENGE>1.000</MENGE>
              <MEINS>EA</MEINS>
              <WERKS>1000</WERKS>
              <LGORT />
              <AEDAT>2011-12-12</AEDAT>
              <BUKRS>1000</BUKRS>
              <ANLN1>010023000315</ANLN1>
              <PSTYP>0</PSTYP>
              <KNTTP>A</KNTTP>
              <LOEKZ>L</LOEKZ> <---- I receive the value here when user has deleted the item in the PO.
      </access>
      - <Key1>
              <EBELN>4500000687</EBELN>
              <EBELP>00010</EBELP>
      </Key1>
      </dbTableName>
      </StatementName>
      </ns0:MT_EKPO_RECEIVE>
    Please help me to understand why the changed values are not reflecting in my MSSQL server from PI. and tell me what should i do to correct it.  I have no error message in RWB for the receiver communication channel. please reply me. your any reply will be highly appreciated. Please reply me

    Delete is handled differently when compared to an  Update_Insert.
    an Update_insert statement is like a modify command. it either inserts an entry or changes it, but does not delete it. You need to specify the keys in the Update_insert XML-SQL.
    In case you have a scenario for delete along with update/insert, please do the following
    1.  Let the source system determine an action, and pass it to PI
    2. Based on the action code, implement 2 split mappings using enhanced interface determination ( rule based interface determination).
    3. Implement 2 seperate maps for Delete and Update, and call them based on the action code rule from the interface determinaton.
    Hope this helps.
    Regards,
    Abhishek

  • RFC to JDBC Empty tables parameters in response

    Hello,
    I've got a problem with an XI query (RFC to JDBC, UPDATE_INSERT) which contains a "tables" parameter. When I get the RFC's response in se37 (in the calling system of course), the "tables" parameter is empty. I need the values for further processing. What can I do to get back the values?
    Thanks in advance for your answers.
    Pierre Lejeune

    Hi Sarvesh.
    Thanks for your answer. The XML response in SXI_MONITOR tells me table is empty.
    My scenario is very simple. I got Receiver Determination, Interface Determination, Sender Agreement and Receiver Agreement, a sender CC to R/3 system and a receiver one to JDBC.
    Maybe it's a mapping problem. In the response mapping, I don't know what to link to the "tables" parameter.

  • LINKAGE_ERROR

    Hello ,
    We are getting a LINKAGE_ERROR at the message mapping step on (runtime) and while testing the message mapping we are getting the CLASS_NOT_FOUND error.
    This happens for all scenarios and not the case with any particular scenario.
    After reading some of the threads , I checked the note 755302 which surely has the correct symptom
    but its applicable for XI 3.0 and we are on 2004 s.
    Please advise.
    Mathews

    Thank you guyz for your replies...Let me try to explain this a bit further.
    Initially I got this error while testing a graphical mapping which was a straight forward ,source structure to JDBC UPDATE_INSERT structure without any functions or UDFs.
    Then to check whether its my mapping problem I created some simple two field mappings as well , but all has the same problem now.While testing the mapping using the test tab you get the 'Class "com.sap.xi.tf._ <message mapping name> not found'
    It gives a linkage_error while running the interface (runtime)
    We tried restarting the Java Stack but with no luck
    Mathews
    Edited by: Mathews Joseph on May 4, 2009 8:24 AM
    Edited by: Mathews Joseph on May 4, 2009 4:37 PM

  • Simple File to Database Scenario

    Dear Experts
    I am working on a File to Database scenario. My requirement is to update the database with latest information. For example
    1. First day i got a file of 100 records...Insert all the 100 records.
    2. Second day i will get 110 records (here 100 records is old data and 10 records is the delta). Now PI needs to lookup with DB and insert the updates of 100 records and insert the delta 10 records...
    3. Third day i got 125 records file (here 110 is previous days data and 15 is todays delta). I need to update the changes of all the 110 and insert 15 delta records
    Thanks

    Hi,
          Since you want to update the existing records and insert the delta, the 'update_insert' option of JDBC receiver should fulfill your requirements.
    Refer the following links for more help on this
    Re: jdbc update_insert
    Jdbc Reaciver UPDATE_INSERT
    Regards

  • Lucene Highlighter linkage Error

    Hello!
    I am working with Tomcat. I have put the Lucene highlighter.jar in the folder lib. And I have created an extra css, where I say that the background color has to be yellow. The searchword has to be highlighted know.
    I have got a dataTable in which the result of the following Lucene method is loaded:
    public void search(String q,  File index, String [] fields, ArrayList subresult, int numresults)  throws Exception {
                       Directory fsDir = FSDirectory.getDirectory(index, false);
                       IndexSearcher is = new IndexSearcher(fsDir);
                        Analyzer analyzer = new StandardAnalyzer();
                        Fragmenter fragmenter = new SimpleFragmenter(100);
                        QueryParser queryparser = new MultiFieldQueryParser (fields, analyzer);
                                  Query query = queryparser.parse(q);
                                  Hits hits = is.search(query);
                                  IndexReader reader=null;
                                  query=query.rewrite(reader);
                                  QueryScorer scorer = new QueryScorer(query);
                                  SimpleHTMLFormatter formatter= new SimpleHTMLFormatter("<span class=\"highlight\">","</span>");
                                  Highlighter high = new Highlighter(formatter,scorer);
                                  high.setTextFragmenter(fragmenter);
                                  numresults = numresults == -1 || numresults > hits.length() ? hits.length() : numresults;
                                  String rating = "";
                                  for (int i = 0; i <numresults; i++) {
                                       if (hits.score(i)>schwelli){
                                            float f = hits.score(i);
                                            if (0.9f <= f) {rating = "******";}
                                            else if (0.8f <= f && f<0.9f){rating = "*****";}
                                            else if (0.7f <= f && f<0.8f){rating = "****";}
                                            else if (0.6f <= f && f<0.7f){rating = "***";}
                                            else if (0.5f <= f && f<0.6f){rating = "**";}
                                            else if (f <= 0.5f){rating = "*";}
                                            Document doc = hits.doc(i);
                                            String abstracts =doc.get("ABSTRACTS");
                                            String title = doc.get("TITLE");
                                            TokenStream abstract_stream = analyzer.tokenStream(q, new StringReader(abstracts));
                                            TokenStream title_straem = analyzer.tokenStream(q, new StringReader(title));
                                            String fragment_abstract = high.getBestFragments(abstract_stream,abstracts, 5, "...");
                                            String fragment_title = high.getBestFragments(title_straem,title, 5, "...");
                                            if(fragment_title.length()==0){
                                                      setAusgabeTitle(doc.get("TITLE"));
                                            }else{
                                                      setAusgabeTitle(fragment_title);
                                            if(fragment_abstract.length()==0){
                                                      setAusgabeAbstract(doc.get("ABSTRACTS"));
                                            }else{
                                                      setAusgabeAbstract(fragment_abstract);
                                            //list.add(i+1+"\t"+q+"\t"+doc.get(entry_medline)+"\t"+hits.score(i)+"\t"+abstract_stream+"\t"+title_straem+"\t"+"MEDLINE");
                                       /*int No = i;
                                       subresult.add((new Integer(No)).toString());*/
                                       subresult.add(doc.get(entry_medline));
                                       subresult.add("No Id");
                                       subresult.add("No Id");
                                       float sco = hits.score(i);
                                  subresult.add(rating);//(hits.score(i));
                                  subresult.add(abstract-stream);
                                  subresult.add(title_straem);
                                  subresult.add("No hits for this index");
                                  subresult.add("MEDLINE");
    But I get the following error.
    Error:
    javax.servlet.ServletException: #{suggestBox.Search}: javax.faces.el.EvaluationException: java.lang.LinkageError: Class org/apache/lucene/search/Query violates loader constraints
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
         org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
    Does someone know what I am doing wrong?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Thank you guyz for your replies...Let me try to explain this a bit further.
    Initially I got this error while testing a graphical mapping which was a straight forward ,source structure to JDBC UPDATE_INSERT structure without any functions or UDFs.
    Then to check whether its my mapping problem I created some simple two field mappings as well , but all has the same problem now.While testing the mapping using the test tab you get the 'Class "com.sap.xi.tf._ <message mapping name> not found'
    It gives a linkage_error while running the interface (runtime)
    We tried restarting the Java Stack but with no luck
    Mathews
    Edited by: Mathews Joseph on May 4, 2009 8:24 AM
    Edited by: Mathews Joseph on May 4, 2009 4:37 PM

  • Linkage error(urgent)

    Hi,I am using visual cafe and weblogic server5,when we tried our demo previously it gave us good results,but i had some problem with the environment,so i created a new project and inserted all files into the project i am able to deliver it to the server,and my client is also working fine.but when the jsp is trying to access my bean it is giving the follwing errorjava.lang.LinkageError: Class game/cnsplayerhandle violates loader constraintsat cns.otg.Start.getPlayerHandle(Start.java:1538)please help me outthank youramat cns.otg.Start.doGet(Start.java:132)at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:105)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:742)at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:686)at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:247)at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:361)at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)

    Thank you guyz for your replies...Let me try to explain this a bit further.
    Initially I got this error while testing a graphical mapping which was a straight forward ,source structure to JDBC UPDATE_INSERT structure without any functions or UDFs.
    Then to check whether its my mapping problem I created some simple two field mappings as well , but all has the same problem now.While testing the mapping using the test tab you get the 'Class "com.sap.xi.tf._ <message mapping name> not found'
    It gives a linkage_error while running the interface (runtime)
    We tried restarting the Java Stack but with no luck
    Mathews
    Edited by: Mathews Joseph on May 4, 2009 8:24 AM
    Edited by: Mathews Joseph on May 4, 2009 4:37 PM

  • File to JDBC -  JDBC database not getting updated using UPDATE_INSERT

    Hi ,
        I have a done a file to JDBC Scenario.File is successfully picked up by sender file channel and recieved by reciever JDBC channel.There is no error in receiver communication channel.I used UPDATE_INSERT action in mapping which has to update the database with all records it recieve.But,i found there is no update in Database table.I donot have access to database,so i made a sender jdbc channel querying all data in it to see what new value is populated.
    I made a dummy sender jdbc channel to check what are the values updates on the run of above interface.But , i found no update occur.Please help me out of this problem.
    Thanks
    Deepak Jaiswal

    The reason I ask , because you will see whether the message got successfully delivered to the target system.
    I want  to see information like below
    2010-04-14 14:31:35 Success Message successfully received by messaging system. Profile: XI URL: http://server:port/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
    2010-04-14 14:31:35 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
    2010-04-14 14:31:35 Success Message successfully put into the queue.
    2010-04-14 14:31:35 Success The message was successfully retrieved from the receive queue.
    2010-04-14 14:31:35 Success The message status set to DLNG.
    2010-04-14 14:31:35 Success Delivering to channel: Communuication channel
    2010-04-14 14:31:35 Success MP: Entering module processor
    2010-04-14 14:31:35 Success MP: Processing local module localejbs/CallSapAdapter
    2010-04-14 14:31:35 Success Receiver JDBC adapter: processing started; QoS required: ExactlyOnce
    2010-04-14 14:31:35 Success JDBC adapter receiver channel CC: processing started; party  , service DB_BS
    2010-04-14 14:31:35 Success Database request processed successfully
    2010-04-14 14:31:35 Success MP: Leaving module processor
    2010-04-14 14:31:35 Success The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2010-04-14 14:31:35 Success The message status set to DLVD.
    raj.

  • Jdbc Reaciver UPDATE_INSERT

    Hey Guys,
    Here i am doing an Update_INSERT Senario.
    I am following ..Below documnets.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm.
    Statement
    TableName
       Action= UPDATE_INSERT
       MYTABLE
      access
        Feild1   is Primarykey
        feild2   is Primarykey
        feild3
      Key
        Feild1  
    Here i should not insert a Doublicate values in ORacle can some one help me here
    Thanks for helping me all these days
    Regd's
    Raj

    Raj,
    hmm.. now this is tricky.
    One option ~~ Select all Customer  ID's from your DB table using select, check the list of values with your vallue and only if it is not available then INSERT using the JDBC adapter.
    This will need a BPM with a Synchronous Select as well as a Separrate INSERT.
    Another optionn~~
    Pass the cusomer ID to a Stored Procedure using a JDBC adapter and then the Stored Procedure will decide if it need to update / insert or ignore this customer id.
    Option 2 is a better way to do it as it avoid a BPM>
    Regards,
    Bhavesh

  • JDBC DB2  UPDATE_INSERT Delay

    Hello everybody,
    I have the following asynchronous scenario
    SAP ECC IDOC -> SAP PI 7.11 - > JDBC DB2 Database
    now, I receive ARTMAS Idoc's from ECC and do mapping to create XML Query statements, now mapping is working correclty and UPDATE_INSERT statements also, the problem is that the Adapter Engine sends the statements, the database recieves them and process them in milliseconds each, and when the database finished ,PI keeps waiting for something for 2 minutes and 6 seconds each message, I already did the following:
    1.- Tried Idoc packaging in development in Mapping to send as much statements as I can considering bandwith, but the problem remains.
    2.- I tried sending only one stamente and takes the same time.
    3.- I already disabled in SAP PI the acknowledge for the Idocs and times are the same.
    4.- I already tried the option "Disconnect from database after each message" with this checkbox activated and deactivated, and the times still the same.
    5.- Already tried the Isolation level with all different options and times still the same.
    6.- Pool waiting advanced parameter not defined so it should take the default that is 5 seconds, but I'm not sure that parameter can control that, do you think?
    The readl problem after monitoring both PI and the database is that the database finishes really fast but PI still waits for something I don't know what for more than two minutes for each message, this creates queueing of messages in the Adapter Engine for this interface, cause each message takes this time.
    I thank in advance your attention and recomendations.
    Regards,
    Julio

    PI should be waiting back the response with the count of recordsinserted or updated. and this delay corresponde with the time that DB take to insert or update the fields i think
    see this. i took it from help sap.
    did you configured the response mapping?
    action=UPDATE_INSERT
    The statement has the same format as for the UPDATE action. Initially, the same action is executed as for UPDATE. If no update to the database table can be made for this action (the condition does not apply to any table entry), values of the table described in the <access> element are inserted in accordance with the description of the action INSERT. <key> elements are ignored in this case.
    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>

  • Error while updating database using jdbc receiver adapter

    Hi All,
    I am trying to update a single record using jdbc receiver adapter.
    This is my the message that is getting created..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Data xmlns:ns0="urn:Test">
    - <STATEMENT>
    - <TABLENAME ACTION="UPDATE_INSERT">
      <TABLE>ORDERS</TABLE>
    - <ACCESS>
      <OrderID>99999</OrderID>
      <CustomerID>VICTE</CustomerID>
      <EmployeeID>3</EmployeeID>
      <ShipAddress>VICTE</ShipAddress>
      </ACCESS>
    - <KEY>
      <OrderID compareOperation="EQ">99999</OrderID>
      <ShipAddress compareOperation="EQ">VICTE</ShipAddress>
      </KEY>
      </TABLENAME>
      </STATEMENT>
      </ns0:Data>
    But in Adapter Monitoring i am getting the following error..
    <i>Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'ORDERS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'VICTE'.</i>
    Regards,
    Rahul

    Rahul,
    > In this case i believe the interface has to be synch.
    > So what will the response message type be like..
    Not necessary. UPDATE can be asynch as well.
    Can you turn the trace on like pointed by Michal and then you can see the Query in the Audit Log of the adapter montioring. Try to execute the same query from your DB Client like TOAD and see what is the Syntax error you are getiing.!
    The problem looks like some field has some dataype / column name mismatch.
    Regards
    Bhavesh

  • JDBC receiver adapter: No 'action' attribute found in XML document

    Hi this is my target structure getting generated at the Receiver JDBC adapter
    I have checked the XML doc, still unable to figure out why in the RWB its showing the following error:
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)"
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_IF001 xmlns:ns0="http://vodafone.com/xi/IF001">
    <Statement>
    <OPCO_VPC_PO action="UPDATE">
    <access>
    <SO>0060000090</SO>
    <SO_ITEM>000010</SO_ITEM>
    </access>
    <key>
    <OPCO_PO>0002002291</OPCO_PO>
    <OPCO_PO_ITEM>00010</OPCO_PO_ITEM>
    </key>
    </OPCO_VPC_PO>
    </Statement>
    </ns0:MT_IF001>
    Kindly Help !!
    Thanks !!

    Hi,
                 Clearly stating that no action attribute .So, please take a look at the structure please do like this at your Data Type specification
    <i><b><b><root>
      <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
        <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName1>
    </root></b></b></i>
        refer the  following link
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    **Assign points if you found helpful
    Regards.,
    V.Rangarajan

  • JDBC - No 'action' attribute found in XML document - error

    Hi,
    I'm trying to write to SQL Server form File
    I successfully read from file, but fail to write.
    <b>My XML is :</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:SD_NEZIGA_OUT_MT xmlns:ns0="ssss.co.il:SD:Office_core_Neziga"><statement2 action="INSERT"><table>Employees</table><access><ID>000009</ID><Name>&#1497;&#1493;&#1504;&#1505;&#1497; &#1512;&#1493;&#1514;&#1497;</Name><Phone>972528288840</Phone><Manager>001037</Manager><DistManager>001037</DistManager><Password>D</Password><UserType>0</UserType><miskalID>0000</miskalID></access></statement2></ns0:SD_NEZIGA_OUT_MT>
    <b>Error from JDBC adapter:</b>
    TransformException error in xml processor class: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)
    Help me please.
    Best regards, Natalia.

    Hey
    Ur XML is not correct,it must be something like this
    <root>
    <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
    <table>realDbTableName</table>.....
    </StatementName1>
    if u look at the receiver structure of /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 this blog,action is an attribute of TEST and not STATEMENTNAME,for ur structure its an attribute of Statement2
    can u send ur receiver structure?
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Receiver jdbc adapter:how to implement the insert or update action in a sql

    Hi,gurus:
    I'm using receiver jdbc adapter now.
    You know, we have to gave the action the value 'update' or 'insert',but in our case,the action is variant--update or insert.It decides whether the record exists in the outer database.
    Can stored procedure do this?If I use stored procedure,then must I create a stored procedure in the outer database?
    Or some other ways to solute my issue?
    THanks in advance.

    Hi
    Use Action UPDATE_INSERT .
    This action check if a record exist with same key value then update that record. In case no record with key value found in database then record inserted to database.
    look receiver structure
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

Maybe you are looking for

  • IPhone 5S, boomerang voice mail

    How does one completely delete a voice mail message?  I delete a message and in a few minutes it comes back as unheard and it is driving me CRAZY.  I have had all of the iPhones as they can come out adn never had this problem before.  Any suggestions

  • Configuring group policy for user profiles in Windows Server 2012 R2 Domain

    Requesting some experts advise on configuring group policy for user profiles. We will be building new Windows Server 2012 R2 Domain Controllers (Domain of 400 users). The settings which I am concerned: 1. Folder Redirection: Desktop, Documents, Favor

  • Cursors are not closed when using Ref Cursor Query in a report  ORA-01000

    Dear Experts Oracel database 11g, developer suite 10.1.2.0.2, application server 10.1.2.0.2, Windows xp platform For a long time, I'm hitting ORA-01000 I have a 2 group report (master and detail) using Ref Cusor query, when this report is run, I foun

  • Ipad air 2 touch id not working when plugged in

    A very strange problem tonight. After work, I grabbed my iPad Air 2 which was plugged in to the Apple Charger next to my chair.  Touched the home button to open it - nothing happened.  Tried again.  Nothing happened.  Entered the code and the IPad Ai

  • How to load XML file to DB

    Hi All, My requirement is I have a XML file, its data should be stored in Database. Below is the sample XML file. <?xml version="1.0"?> <PaymentInfoMessageResponse> <PaymentInfoResponse> <TransactionType>940</TransactionType> <SequenceNum>04</Sequenc