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

Viewing entire class implementation (source code)?

Former Member
0 Likes
10,234

Is it possible to view all of an object's implementation as a program that I can edit or download? Obviously, we can view the class and method signatures by going to the Private, Protected and Public sections, but how about the source code itself? Does it reside in an include somewhere?

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
5,348

Hello Chris

If you have class <b>CL_OO_SOURCE</b> available on your system then create an instance of this class with your target class. The public instance attribute <b>SOURCE </b>contains the entire coding of the class.

Regards

Uwe

6 REPLIES 6
Read only

Former Member
5,348

Hi Chris,

When you open a class Builder : TCode - SE24 ,

there is button SOURCE CODE-BASED ( second last , just before CLASS DOCUMENTATION ) , just click the button and you all will all code.

I hope this will solve you query

Kindly reward the points accordingly.

Regards,

Pranshu

Read only

0 Likes
5,348

I don't have this particular button on my system for some reason.

Read only

uwe_schieferstein
Active Contributor
0 Likes
5,349

Hello Chris

If you have class <b>CL_OO_SOURCE</b> available on your system then create an instance of this class with your target class. The public instance attribute <b>SOURCE </b>contains the entire coding of the class.

Regards

Uwe

Read only

0 Likes
5,348

This does the trick. I'll just write a little wrapper for myself when I want to save off source code. Thank you.

Read only

0 Likes
5,348

Or you can install saplink and export the entire class in XML format.

Regards,

Rich Heilman

Read only

P281512
Participant
5,348

Eclipse ADT shows the class all in 1 place
Also F3 key (navigate to definition) is useful to see interface etc