cancel
Showing results for 
Search instead for 
Did you mean: 

MDM update in java API

Former Member
0 Kudos

Hi,

This is regarding MDM Java API.

I have to update MDM table record (multiple fields) with incoming data. However, most of the time, the incoming data has the same value as the data in the record.

To avoid affecting the MDM performance just to update nothing (since the existing record data is same as incoming data), i'm looking for a quick way to check whether the incoming data is same as existing data; if yes, no update.

Manually looping through each field of the record and comparing the data is simply too inefficient for us.

Any help would be much appreciated.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Julius,

Try using Interface Record.ModificationStatus of com.sap.mdm.data.

Method Record.ModificationStatus().

Hope it helps.

Thanks,

Minaz

Answers (2)

Answers (2)

Former Member
0 Kudos

compare by string

Former Member
0 Kudos

Hi Julius

To achieve what you are trying do the following

1) create a matching stratergy in MDM

2) Use API command "RetrieveMatchingStrategiesCommand" run matching stratergy for the record you are trying to create.

3) check if duplicates exist. If it exists delete the record else insert the record.

Regards