Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

create Key Mapping

Hello wizards,

I am trying to create a KeyMapping for the MDM records, I was trying using the below code. I can see the code is getting executed fine. But no Key Mapping is added to the records

Record record = getTestRecord(connection);

RecordId recordID = mdmMatchingConnection.createRecord(record);

RecordKeyMapping recordKeyMapping = KeyMappingFactory.createRecordKeyMapping(connection.getMainTable(),recordID);

KeyMapping keymap = KeyMappingFactory.createKeyMapping(getRepoSchema().getRepositorySchema().getRemoteSystemId("TEST_220"));

keymap.addKey("Hellothere");

recordKeyMapping.addKeyMapping(keymap);

Any suggestions would be really great!.

Regards

Vivek

Tags:
Not what you were looking for? View more on this topic or Ask a question