on 01-19-2007 8:47 PM
Dear,
Using Receiver JDBC adapter INSERTING records in legacy database table.
Legacy table have one primary key, and It INSERTS successfully if all the
records have new primary values.It fail's to INSERT if the primary value
repeated this is fine<b>.<u>It not only inserting this records and it also not inserting other valid records</u></b> .
Can any one help on this issue?
Best answer will be rewarded
Regards,
Ravi.
Ravi,
Can you please let us know the update statement what you have given?
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Satish,
This is how i XML query looks
<StatementName2>
- <FLEET_OBJECT_ASSIGNMENT action="UPDATE_INSERT">
<table>FLEET_OBJECT_ASSIGNMENT_V</table>
- <ACCESS>
<FLEET_OBJECT_NUMBER>1600100000000000009066</FLEET_OBJECT_NUMBER>
<SITEID>2401</SITEID>
<LOCALID>00109</LOCALID>
<VALID_FROM_DATE>16-JAN-07</VALID_FROM_DATE>
<LOCATION>NONPLANT</LOCATION>
<CAPACITY />
<CAPACITY_TYPE />
<PLANT_SECTION />
<VALID_TO_DATE />
<STARTUP_DATE />
<STATUS>CRTE</STATUS>
<PLANNING_PLANT>2401</PLANNING_PLANT>
<MOD_TS>16-JAN-07</MOD_TS>
<MOD_BY>A52799</MOD_BY>
</ACCESS>
- <KEY>
<FLEET_OBJECT_NUMBER>1600100000000000009066</FLEET_OBJECT_NUMBER>
</KEY>
</FLEET_OBJECT_ASSIGNMENT>
</StatementName2>
Hi Ravi -
Is the <i>UPDATE_INSERT</i> action against your requirements?
Regards,
Jin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i have not validated this, however might be worh trying...
In the JDBC XML message, you currently must be having different 'STATEMENT' tags for different inserts....
Can you try having a "STATEMENT" with action "SQL_DML" .This will have the "commit work" in it..
There is also a parameter called - Database Auto-Commit-Enabled in the JDBC receiver adapter..please check this also...
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
check out with Transaction Isolation Level properties in the JDBC adapter-
for more-
http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
Rgds,
Moorthy
Ravi,
There is no syntax for this. Just in communication channel there is a Check box for advanced mode in the last. Just click on this. Then you will have a drop down box for Transaction isolation level. Just select it serializable. This is what you have to do.
If you need help on this kindly check the weblogs given by krishna.
---Satish
User | Count |
---|---|
87 | |
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.