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: 

Viewing entire class implementation (source code)?

Former Member
0 Kudos

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

uwe_schieferstein
Active Contributor
0 Kudos

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

Former Member

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

0 Kudos

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

uwe_schieferstein
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

Regards,

Rich Heilman

P281512
Participant

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