on 02-14-2014 1:04 PM
Hi All,
I have DB table like below with promary key & FK relations . Please create the key field structure. I have read help.sap docs but did not get that col1,col2.vol1,val2....etc words .
I need sample structure please help hear is the table
for above table i have created structure like below
Hear is the problem am facing, now i was confused to create key filed tag i don't know how to create plz help..?
hi,
I need to know below two points according my DB table mentioned above :
1. Should i create all PK,FK1,FK2 fields in key filed segment ?
2. Is it mandatory to keep the key fields both in access segment & key segment .?
Please help me on this
Vin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What i meant by unique key was a kind of composite primary key where in -
The table maintains a unique combination for the defined fields. You can find it if you open the table structure or check with your DB team.
i.e. In your database table, if PK1,FK1 and FK2 can have only one entry per combination which might not be the case most of the times.
May be you can just add the Primary key PK1 as that still works..
Just create another segment with "key" in the same level as "access" and add your key fields under it.
http://help.sap.com/saphelp_srm40/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
http://www.ijunglee.com/entries/sap-pi/idoc-to-jdbc-%E2%80%93-multiple-table-insert-update
If your action is " UPDATE_INSERT" and would like maintain an OR condition between the key fields then you'll have to deinfe separate KEY segment for each 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 Singh,
Please follow below links..
SAP PI Adapter Series: JDBC Adapter Configuration
IDOC To JDBC – Multiple Table Insert/Update | iJunglee.com
Please let me know if you still face an issue..
Thanks,
Sreenivas
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.