on 09-10-2007 2:58 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks greg what you suggested is right.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.