Skip to Content
0
Feb 08, 2017 at 03:24 PM

How to find the actual type of generic type?

310 Views Last edit Feb 08, 2017 at 03:32 PM 3 rev

I have created a importing parameter with type 'any' in one of the method interface.

Consumer can pass structure or table to this importing parameter.

Later, I am assigning this importing parameter to field symbol to read data.

Since, I cannot loop this field symbol if someone is passing structure to this - I want to check if generic type converted to table or structure after data assignment.

data type any (method importing parameter)

field-symbols: <fs> type any.

assign data to <fs>.

Regards,

Naveen