cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve attributes of a Class

SandeshK
Participant
0 Kudos
106

Hi All,

I have a requirement in which i need to fetch all the attributes of a class in an internal table. Is there any FM or procedure to achieve my requirement.

Thanks,

Sandesh

View Entire Topic
kesavadas_thekkillath
Active Contributor
0 Kudos

Hi,

You can use the class cl_oo_object and its method to acheive this.

For example refer wiki http://wiki.sdn.sap.com/wiki/display/ABAP/List+all+Methods,Attributes,Events+of+a+Class

Also please search for the wiki posted by Vinod Kumar which explains the complete usage of this class.

Former Member
0 Kudos

In addition to the class mentioned by , you can use the class CL_OO_CLASS_COMPONENTS_FLAT to get the component list.

Regards, Vinod