Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the actual type of generic type?

naveen_inuganti2
Active Contributor
0 Kudos

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

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Use RTTS classes (ref. RTTS - Runtime Type Services)

Regards,
Raymond

2 REPLIES 2

raymond_giuseppi
Active Contributor

Use RTTS classes (ref. RTTS - Runtime Type Services)

Regards,
Raymond

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

For simple cases, you can use DESCRIBE FIELD still.