on 01-09-2006 12:10 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Regards,
Harish
(Please award points for helpful answers)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.