cancel
Showing results for 
Search instead for 
Did you mean: 

IRecordSet inside IRecordSet

Former Member
0 Kudos

Hi everyone,

I'm trying to execute a function on a SAP R3 System using the SAP Connector Framework and one of the input parameters is a IRecordSet that contain a column of the type IRecordSet.

I'd like to know if it's possible (and how to do it) to get the structure of an IRecordSet from inside another IRecordSet?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

That solution doesn't work. It throws a ConnectorException. But I figure it out:

IRecordSet recInput = (IRecordSet)structureFactory.getStructure(function.getParameter("TABLE_NAME").getStructure());

recInput.insertRow();

IRecordSet setFeiras = (IRecordSet) recInput.getObject("FIELD_NAME");

I got the first IRecordSet the usual way and then with the recInput.getObject("FIELD_NAME") I got the structure of the one inside it.

Thanks anyway.

Former Member
0 Kudos

Hi,

IRecordSet is used to obtain a list of IRecord objects.

The method getRecords() retrieves an enumeration of IRecord objects.Thus each row of the enumeration should return an IRecord object.Further the Interface IRecord has the method getFields(),which returns an enumeration of field objects .Each/any of the field object can also be an IRecordSet object.

So as far as I see we can have a IRecordSet within IRecordSet.

Please refer to the javadocs available for this.

The link provided below points to the javadocs.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0e5590e3-0601-0010-6b97-f40...

Regards,

Harish

(Please award points for helpful answers)