cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Java-DI-API and ItemGroups/IRecordset

0 Kudos

Hi,

i want to read the ItemGroups with a Recordset out of the table OITG and have the following problem:

After connecting the database, i want to retrieve a Recordset object from the company object like this:

IRecordset rsProductGroups = (IRecordset)gcc.getBusinessObject(SBOCOMConstants.BoObjectTypes_BoRecordset);

The VM gives me a java.lang.ClassCastException.

There is no Business Object for ItemGroups in the current release, so i have to user IRecordset, right?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185703
Active Contributor
0 Kudos

If want to get a new business object should write code like:

IRecordset rsProductGroups=SBOCOMUtil.newRecordset(gcc);

Regards,

Frank