2006 Jun 14 11:08 AM
Hi,
I have a class method, in that method I will create instances of the same class and I want return those instances as an export parameter. Is there any other way apart from creating a table type of the class and using it as the type of the export parameter. With out creating any global type how can I return list of objects from this class method and how can I read that list in my calling program.
Regards,
Sesh
2006 Jun 14 11:19 AM
Hi,
You can try returning the instances individually like
export
instance1
instance2
instance3
But the better and correct way would be using table.
Sameena
2006 Jun 14 11:24 AM
Hi,
I dont know how many instances I will have to create inside the method so I have to return a table. I know one way of doing it.
Say my class is CL_CLASS
I can create a table type for CL_CLASS as CL_CLASS_T
and declare one export parameter for the method with type as CL_CLASS_T.
I can return table of objects like this.
I want to know is there any way of doing this with out creating a table type.
Regards,
Sesh
2008 Jan 30 8:31 AM
I got the answer that its not possible, hence closing the thread.