UPDATE_INSERT Error

Hi Experts,
Need urgent help.
Right now i am using UPDATE_INSERT for my Receiver JDBC Adapter. But i am getting error in communication channel monitoring that : *ORA-00933: SQL command not properly ended *
and
in oracle if i am trying to run the below command :
*update_insert ol_account
set user_login_id = 'hetal'
where user_unique_id = '750124783';*
Then i am getting error that invalid comman. Can anyone tell me that y it is happening.
Its bit urgent so please reply soon.
The scema is something like this :
  <?xml version="1.0" encoding="UTF-8" ?>
- <ns0:Modify_OL_Account xmlns:ns0="http://reliant.com/xi/EmailSolicitation">
- <statement>
- <OL_ACCOUNT action="UPDATE_INSERT">
  <table>OL_ACCOUNT</table>
- <access>
  <USER_UNIQUE_ID>0000294551</USER_UNIQUE_ID>
    <CPDB_UPDATE_DATE hasQuot="No">04/01/2008 16:18:24</CPDB_UPDATE_DATE>
  </access>
- <key>
  <USER_UNIQUE_ID>0000294551</USER_UNIQUE_ID>
  </key>
  </OL_ACCOUNT>
  </statement>
  </ns0:Modify_OL_Account>
Thanks in advance.
Regards,
Hetal

Hi Beena,
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>
You can use it like this :
<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>
Hope this will help you.
Regards
Aashish Sinha
PS : reward points if helpful

Similar Messages

  • 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

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

  • JDBC Receiver error

    Hi All,
    I have a scenario where XI has to pick the file from ftp and update the stagging databse through JDBC.
    XI is picking the file, but not getting failed while sending the data to JDBC.
    Unable to execute statement for table or stored procedure. 'MSDYNAMICSEMPLINFO' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'MSDYNAMICSEMPLINFO'.
    JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'MSDYNAMICSEMPLINFO' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'MSDYNAMICSEMPLINFO'
    Exception caught by adapter framework: null
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MSDYNAMICSEMPLINFO' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'MSDYNAMICSEMPLINFO'
    Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MSDYNAMICSEMPLINFO' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'MSDYNAMICSEMPLINFO'
    But the client say that the table is created at their end.
    Please help
    Edited by: Lavanya Ravi on May 17, 2011 8:01 AM

    HI Lavanya,
    1) StatementName should be 0..Unbounded and need to be mapped with the source which is repeating which is Record.
    2) No need to mapp TableName node.
    3) Action will be attribute and needs to be mapped to constant with eiter Insert,Update and UPDATE_INSERT as well.
    4) Table will be mapped to the constant and needs to provide the table name in the database.
    5) No need to map with access as you have mapped the Record to Statement Name. When ever multiple records exists from source the statement will be excuted for each and every record.
    Try to use this mapping and update the status.
    Finally if you see the payload in the receiver JDBC channel your structure will be like below. If your payload in the receiver JDBC showing the structure like below then your problem will be solved.
    <MessageType Name>
      <StatementName>
    <dbTableName action=u201DINSERTu201D | u201CINSERTu201D>
        <table>MSDYNAMICSEMPLINFO</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    Thanks,
    Raju

  • JDBC Adapter error"no action attribute find"

    hi,
    thnks 
    i checked the structure for sending and receiving both for JDBC and file i m getting this error AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)</SAP:AdditionalText>

    Hi Aruna,
    I think you have missed the action attribute in the data structure.
    Please see the below structure.You need to map <b><i>'Action'</i></b> attribute with the kind of action you want to perform like select or update or delete etc.
    <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>
    </dbTableName>
      </StatementName1>
    </root>
    Hope that helps!!
    Regards
    Sunita

  • FATAL ERROR document format: structure 'STATEMENT'

    Hi experts,
    I've a scenario IDOC to JDBC, give me the error: FATAL ERROR document format: structure 'STATEMENT'
    I don't understand becausse payload is OK:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_MATERIALES xmlns:ns0="http://idom.com/arteche/PP_I07_15A/Maestro_Materiales">
    - <STATEMENT>
    - <TABLENAME ACTION="UPDATE_INSERT">
      <TABLE>MAESTRO_MATERIALES</TABLE>
      </TABLENAME>
    - <ACCESS>
      <MATERIAL>100000016</MATERIAL>
      <DESCRIPCION>mmpp1</DESCRIPCION>
      <TIPO_ARTICULO>3</TIPO_ARTICULO>
      <GRUPO_ARTICULOS>014</GRUPO_ARTICULOS>
      <LEADTIME>00</LEADTIME>
      <CENTRO>0101</CENTRO>
      </ACCESS>
      </STATEMENT>
      </ns0:MT_MATERIALES>
    somebody can help me please?
    very thanks,

    Hi,
    The format of your input message (towards DB is not proper)...
    <ns0:MT_MATERIALES xmlns:ns0="http://idom.com/arteche/PP_I07_15A/Maestro_Materiales">
    - <STATEMENT>
    <TABLENAME ACTION="UPDATE_INSERT">
    <TABLE>MAESTRO_MATERIALES</TABLE>
    </TABLENAME>
    <ACCESS>
    <MATERIAL>100000016</MATERIAL>
    <DESCRIPCION>mmpp1</DESCRIPCION>
    <TIPO_ARTICULO>3</TIPO_ARTICULO>
    <GRUPO_ARTICULOS>014</GRUPO_ARTICULOS>
    <LEADTIME>00</LEADTIME>
    <CENTRO>0101</CENTRO>
    </ACCESS>
    </STATEMENT>
    </ns0:MT_MATERIALES>
    The actual format should be:
    <root>
      <StatementName1>
    <dbTableName action=u201DUPDATEu201D | u201CUPDATE_INSERTu201D>
        <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>
    In the above format look where the TableName tab should end...for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    Regards,
    Abhishek
    Edited by: abhishek salvi on Feb 26, 2009 4:07 PM

  • 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

  • Update_Insert not working properly

    Hi,
    I started trying JDBC adapter and i wanted to do an update/ insert depending upon the record exists in the DB or not. But when i am performing such  an activity, the data is getting only updated/ inserted. ( it is dependent upon the first record... If the first record is a insertion, it will insert all the records.. and if the first record is updation, it will try updating all the records and i am getting an error....
    is my understanding of UPDATE_INSERT wrong..?
    sonali.

    Hi Michal,
    When u perform a update_insert with multiple records, and map the records with the statement, multiple staements will be generated like :
    <ns:RoleDetails_DB_MT xmlns:ns="urn:Update_Insert">
    + <Statement>
    + <Statement>
      </ns:RoleDetails_DB_MT>
    and the result will be as follows:
    - <ns:RoleDetails_DB_MT_response xmlns:ns="urn:Update_Insert">
      <Statement_response>
        <update_count>1</update_count>
        <insert_count>0</insert_count>
      </Statement_response>
      <Statement_response>
        <update_count>0</update_count>
        <insert_count>1</insert_count>
      </Statement_response>
      </ns:RoleDetails_DB_MT_response>
    dependign upon the record is inserted/ updated into teh table the value is reflected into the respose.
    Is this what you wanted to know...
    Cheers,
    Siva Maranani.

  • 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

  • IDOC to MSsql,  error in mapping(Violation of PRIMARY KEY constraint)

    Hi All,
    I'm working with MATMAS IDOC  to MSSql. My SQL structure is of 8 tables(multiple statements) with primary key. In mapping i have used UPDATE_INSERT in action field for all the tables but still im getting "Violation of PRIMARY KEY constraint" for the last table structure. first 7 tables are single occurances but the 8th structure data is coming multple times from IDOC(E1MARMM).
    my 8th table structure is :
    STATEMENT8                                IDOC(MAPPED)
    TABLE8
    ACTION                                      UPDATE_INSERT
    TABLE                                           TABLENAME
    ACCESS     0 to Unbounded            MAPPED with E1MARMM
    Item_CD                                used oneasmany +splitbyvalue with MATNR
    Plant_ID                                  used oneasmany +splitbyvalue with WERKS  
    EAN_CAT                                 used oneasmany +splitbyvalue with NUMTP
    EAN                                             used oneasmany +splitbyvalue with EAN11
    Numerator_For_Conversion_To_BaseUOM
    Display_UOM
    Denominator_for_conversion_To_baseUOM
    KEY           0 to Unbounded                 MAPPED with E1MARMM
    Item_CD                                used oneasmany +splitbyvalue with MATNR
    Plant_ID                                  used oneasmany +splitbyvalue with WERKS  
    EAN_CAT                                 used oneasmany +splitbyvalue with NUMTP
    EAN                                             used oneasmany +splitbyvalue with EAN11
    Display_UOM
    in test tab its fine and fetching number of times according to MARMM segments  but in END to END testing its triggering an error stating that
    ""Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MM_EAN' (structure 'STATEMENT8'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_MM_EAN'. Cannot insert duplicate key in object 'dbo.MM_EAN'.  ""
    Plz help me regarding this..

    Hi team,
    How resolve the below error 
    Violation of PRIMARY KEY constraint 'PK_test'. Cannot insert duplicate key in object 'dbo.test'. The duplicate key value is (12610). (Source: MSSQLServer, Error number: 2627) ?
    Thanks,
    Ram
    RAM
    There can be two reasons
    1. The insert script used is having multiple instances of the records with Key as 12610 returned from the source query. If this is the issue add a logic to include only the unique set of id values for records by avoiding duplicates. There are several approaches
    for this like using ROW_NUMBER with PARTITION BY, using a join with derived table etc
    2. The record with Key 12610 already exist in your destination table and your script is again trying to insert another instances of record with same key. This can be avoided by adding a NOT EXISTS condition with a subquery which will check and return only
    those records which doesnt already exist in the source
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • JDBC Error Statement

    Hi experts,
    I've a scenario IDOC to JDBC, give me the error: FATAL ERROR document format: structure 'STATEMENT'
    I don't understand becausse payload is OK:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:MT_MATERIALES xmlns:ns0="http://PP/Materiales">
    - <STATEMENT>
    <TABLENAME ACTION="UPDATE_INSERT">
    <TABLE>MAESTRO_MATERIALES</TABLE>
    </TABLENAME>
    <ACCESS>
    <MATERIAL>100000016</MATERIAL>
    <DESCRIPCION>mmpp1</DESCRIPCION>
    <TIPO_ARTICULO>3</TIPO_ARTICULO>
    <GRUPO_ARTICULOS>014</GRUPO_ARTICULOS>
    <LEADTIME>00</LEADTIME>
    <CENTRO>0101</CENTRO>
    </ACCESS>
    </STATEMENT>
    </ns0:MT_MATERIALES>
    somebody can help me please?
    very thanks,

    >
    silvia diego wrote:
    > Hi experts,
    >
    > I've a scenario IDOC to JDBC, give me the error: FATAL ERROR document format: structure 'STATEMENT'
    > I don't understand becausse payload is OK:
    >
    > <?xml version="1.0" encoding="UTF-8" ?>
    >
    >     * <ns0:MT_MATERIALES xmlns:ns0="http://PP/Materiales">
    >
    > - <STATEMENT>
    >
    >     * <TABLENAME ACTION="UPDATE_INSERT">
    >
    > <TABLE>MAESTRO_MATERIALES</TABLE>
    > </TABLENAME>
    >
    >     * <ACCESS>
    >
    > <MATERIAL>100000016</MATERIAL>
    > <DESCRIPCION>mmpp1</DESCRIPCION>
    > <TIPO_ARTICULO>3</TIPO_ARTICULO>
    > <GRUPO_ARTICULOS>014</GRUPO_ARTICULOS>
    > <LEADTIME>00</LEADTIME>
    > <CENTRO>0101</CENTRO>
    > </ACCESS>
    > </STATEMENT>
    > </ns0:MT_MATERIALES>
    >
    > somebody can help me please?
    >
    > very thanks,
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    refer the above to get the correct structure for UPDATE_INSERT
    your structure is not consistent with the standard one

  • 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

  • Error in starting Adobe Bridge in Photoshop CS2

    I've just installed Photoshop CS2, however upon opening Adobe Bridge this error message appears " The application has failed to start because libagluc28.dll was not found. Reinstalling to application may fix the problem"
    I have reinstalled and click repair but to no avail
    I followed Adobe Support Knowledgebase solution and run CMD and this appears:
    c:Documents and Settings/Jesus M Ferraris>
    then i entered the command
    cacls c:\windows\installer /T /E /C /G administrators:F
    but an error message appears - 'cacls' is not recognized as an internal or external command, operable program or bathc file
    I also entered the next command
    cacls "c:\documents and setting\all users" /Y /E /C /G administrators:F
    still the same error as above appears, Please help, have I miss something or was my procedure correct...
    P4, 512ram, WXP 80gHD

    Very useful.
    Good Luck.
    My
    Si
    tes

Maybe you are looking for

  • Email interface bug

    Hi everyone, Ive got an iphone 3gs running the latest iphone software 3.x.x. and I had a first generation Iphone. When I first got my 3GS in September I noticed an email bug. if you are reading an email horizontally, and flip the phone to vertical an

  • HT2693 after syncronization with my pc both pc and iphone are showing that phone could not be activated, because there is no sim in the slot

    Sir, Yesterday night i was syncronized my iphone 3gs with my pc.  after that operation my phone will not be activated showing error as cound not be activated because sim was not installed.  but already I was inserted my sim in it.  The phone is conne

  • New 2010 Mac Mini and LG 37" Full HD (via HDMI) query..

    Hello all! I have just bought the new Mac Mini which I want to use along with my LG 37" (LH5000) full HD LCD TV.I have hooked them both up together via HDMI. When I first turned the Mac Mini on it detected various resolutions and choose 1080p. Howeve

  • Calendar with Drill Down Report

    Hello, Everybody. I am new to Application Express. Please any one tell me step by step how to make calendar with drill down report. Waiting for valuable reply. Thanks Rahul

  • Data not saved in database

    hi,      i'v a prob. that once i create quation through va21 then it create and saved data. now when i create sales order through va01  then it show data saved and gave the sales order no. but when i 'm going to change it then message comes order not