on 12-05-2008 11:09 AM
Hi all ,
My requirement is as follows.
There is one condition in XI which restricts certain work groups,These work groups will be changing contantly.
Now my requirement is that ,if a record number say 100 exists in my oracle database,when the same record number is passed again,it should delete the old record which is already in the database and insert this new record.In other words all the records which are sent must be inserted with out duplication.
How to achieve this functionality through XI.
let me know.
Thanks,
Srinivasa
Hi
Map the field that u want to update like "100" to Key field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Action should be Update_Insert not Insert_update .
Key Field is use for matching record, suppose if EMP_ID field, u dont want any duplicate insert EMP_ID.
then use this EMP_ID as key field.
As you said pass the record that u want to update as suppose EMP_ID is 100, In target structure map this source field to a field that u want to match in Database.
So if Record EMP_ID 100 already exist then record would be updated else new record inserted to database.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
JDBC receiver structure use "Update_Insert" Action .
and Send field value that u want to check.
look this help documentation, in this key2 would be check field.
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use BPM/ UPDATE_INSERT along with JDBC lookup.
if a record number say 100 exists in my oracle database
Check this using JDBC lookup.
delete the old record which is already in the database and insert this new record
First create a send step with delete message and then another send message to insert the data. Here you may also use Update_insert
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use action Update_Insert will update existing record if exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where to handle this INsert_Update? in CC
No. In the datatype structure. See here
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
update xxx where rcold=rec new?
You have to use receiver JDBC CC.
can we do this with ou using BPM?
Yes, with UPDATE_INSERT and JDBC lookup.
Regards,
Prateek
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.