Hi friends
Scenario:
File--
>PI
--->Database ( jdbc)
In the above scenario while designing the mapping :
We are using TableName , Access , Key nodes
Under Access node : I have all the fields
I am not sure whether to use andy fields under Key node
Kindly guide me what is signifance of Key and whether i need to use this key node.
My Requreiment :
If there are multiple entries for same product id with <PurchaseMode>New Contract</PurchaseMode> value, then overwrite value in DB with the last product idu2019s value
Hoe to achieve the above requreiemnt ?
Renu
> Kindly guide me what is signifance of Key and whether i need to use this key node.
When you look in online help, this is explained very clearly.
You need key for update so that DB knows which row you want to update.
The key can be generic.
> If there are multiple entries for same product id with <PurchaseMode>New Contract</PurchaseMode> value, then overwrite value in DB with the last product idu2019s value
When you use PurchaseMode as key, then all entries with same PurchaseMode are updated at once.
Hi Renu,
>>If there are multiple entries for same product id with <PurchaseMode>New Contract</PurchaseMode> value, then overwrite value in DB with the last product idu2019s value
I guess you cannot do this using a single Query in Database. Right? So you may need to have a Stored Procedure in receiver side.
Check this link for your futher query on Key, Access etc.
http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
Regards
Suraj
Add a comment