on 08-11-2011 7:58 AM
Hi
I have a file coming with say 50 records ...each record having a key field ( order num and order Item )
I also know how to define a target JDBC structure...
My Q is is there a way that I can fire a single UPDATE_INSERT query to the data base with this 50 records..
I do not want to repeat the STATEMENT node and create 50 seperate queries...
Is this possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As docu says,
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>
there is one other option using which u can pass entire records at a single go...u have to change ur design use Stored procedures on the target side and pass ur entire source input as xml string input to the SP.....
If u r using PI7.1 refer this:
/people/william.li/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-copy-xml-subtree
on the DB side ur database team can parse that xml input string and do the necessary operations...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.