Application Development and Automation 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: 
Read only

class and class type based on inspection method

Former Member
0 Likes
356

Hi experts,

I have a requirement in my script like this i have a inspection method. based on this inspection method i have to get class and class type. and from which table we can get this class and class type based on inspection method. please suggest the solution.

Thanks in advance

Thanks and Regards

D.Ramesh

1 REPLY 1
Read only

Former Member
0 Likes
301

Hi Sai,

Have you tried Run Time Type services? If you need to perform some interspection of a class, you can use one of two classes:

CL_ABAP_OBJECTDESCR or

CL_ABAP_REFDESCR

there are several methods you can use:

Describe_by_Name

Describe_by_Object_Ref

describe_by_data_ref

describe_by_data

One of these should do the trick...it just depends on what situation you are in.

Hope this helps!

Quack