cancel
Showing results for 
Search instead for 
Did you mean: 

Get KeyMapping Value by JAVA API

Former Member
0 Kudos

Hi All,

i want to retrieve the KeyMapping value from MDM and using RetrieveRecordsKeyMappingsCommand.

The result is the keymapping structure in an array of type RecordKeyMapping. But my desired result is only the default key value of type string. Is there a possibility to realise that?

I'm using the following code:

Command.setDefaultKeysOnly(true);

Command.setSession(session);

Command.setRecordIds(recordIdsArray);

Command.setTableId(tableId);

Command.execute();

RecordKeyMapping[] keyMapping = Command.getKeyMappings();

Best Regards,

Timo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Timo

Which version of MDM you are using?

In MDM 7.1 a new feature has been provided to identify the defualt key mapping amongst the multiple key mapping existing for a record. Please refer to page 27 of the following ppt for details. Check the APIs for 7.1 for retrieving the remote key, it will also return a flag denoting Defualt key.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0f6bd20-b864-2d10-e2b2-f7e6a713f...

Hope this helps-Ravi

Answers (1)

Answers (1)

former_member205403
Active Contributor
0 Kudos

Hi,

Did you tried method getDefaultKey ( ). I feel this will give you desired result..

kindly check and revert with the result...

Best Regards,

Shiv