cancel
Showing results for 
Search instead for 
Did you mean: 

Java API Remote key

Former Member
0 Kudos

Hi All,

I want to retrieve all remote key entries using MDM Java API how can I do that any one had done it before or have any clue for this?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ninad,

For start, use class RetrieveRecordIdsByRemoteKeyCommand

/**

  • This command is responsible for retrieving set of Record IDs by remote keys.<p>

*/

And then use function: getRemoteKeys()

  • Gets remote key for which record IDs should be retrieved from repository.

  • @return remote keys

I hope this is your direction and it will help you.

Best regards,

Yaniv

Former Member
0 Kudos

Hi All,

I am trying to use this class RetrieveRecordsByRemoteKeyCommand but we have to set remote key first to use this command I am not getting how to create KeyMapping for setting remote key any one has used this before? can you please paste the code here if possible.

Thanks

Former Member
0 Kudos

Hi

you can try this code

RetrieveRecordsKeyMappingsCommand recordKeyMappingCommmaond = new RetrieveRecordsKeyMappingsCommand(connection);

recordKeyMappingCommmaond.setSession(this.getAuthenticatedUserSession().getSession());

recordKeyMappingCommmaond.setTableId(mainTableId);

recordKeyMappingCommmaond.setRecordIds(recordIds);

recordKeyMappingCommmaond.execute();

GetRemoteSystemListCommand remoteSystemsCommand = new GetRemoteSystemListCommand(connection);

remoteSystemsCommand.setSession(this.getAuthenticatedUserSession().getSession());

remoteSystemsCommand.execute();

RemoteSystemProperties[] remoteSystemProperties = remoteSystemsCommand.getRemoteSystems()

Thanks

Ninad

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi Ninad,

I think this URL will help you in finding out the way to retrive the remote key entries:

[http://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/package-summary.html]

Regards,

Krutarth