on 08-30-2006 12:36 AM
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
My question is not to insert the Duplicate values in
SO in what way do i need to desing a <Key> Structure.
Regd's
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavesh,
MY query is.
In place of action or my constant i am useing <b>update_insert</b>
i am Custom id already exit in oracle table it should not be update.
If the customer id not exist then it need to be insert .
for that what sort of <Key> structure do i need to use.
thanks for helping me
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
Hi Bhavesh,
Can you please Clearly explain me about store procedure if you have any blogs can you please forward me.. so i can complete the request. i am not going to use BPM. One more thing where should i need to write store procedure.. here.. So do i need to change my Hole stucture now..
Regd's
Raj
Stored Procedures,
take a look at this blog,
/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
<i>So do i need to change my Hole stucture now..</i>
Yes , you will have to. For info on teh strcutre look into the online documentation
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
See the part under STATEMENTNAME5.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.