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: 

class and class type based on inspection method

Former Member
0 Kudos

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

Former Member
0 Kudos

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