cancel
Showing results for 
Search instead for 
Did you mean: 

SP05 MDM Java API

Former Member
0 Kudos

Hi xperts,

I am working on MDM Java API on SP05 server (initial release 5.5.40.83) on the MDM standard example to retrive Data from a Table.

http://help.sap.com/javadocs/MDM/current/com/sap/mdm/examples/RetrieveLimitedRecords.html

I am getting an execption on this command

RetrieveLimitedRecordsCommand recList = new RetrieveLimitedRecordsCommand(cp);

recList.setSession(userSes.getUserSession());

recList.setResultDefinition(rd);

recList.setSearch(search);

<b>recList.execute();</b>

The user session, result definition is mentioned properly.

The error is :

<i>java.lang.IllegalArgumentException: The array of table schemas must contain at least one table.

at com.sap.mdm.schema.RepositorySchema.<init>(RepositorySchema.java:63)

at com.sap.mdm.data.commands.RetrieveLimitedRecordsCommand.execute(Unknown Source)

at com.sap.mdm.data.GetRecords.main(GetRecords.java:87)

Exception in thread "main"</i>

Pl solve this,

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Greg_Austin
Active Participant
0 Kudos

I would check that you are creating the ResultDefinition with a valid TableId and that the select fields of the ResultDefinition are set with valid FieldIds.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks greg what you suggested is right.