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

Dumping Global ABAP Objects Source Code to Text File

Former Member
1,027

Hello People, this is my first post and my first time to join the forums.. and also my first time to code in ABAP.

Anyways, I was wondering if there is a way to dump the source code definition of any class/interface made in SE24 (Object Builder) onto a Text File; all the methods, attributes etc... of a class/interface. I've used SEO_METHOD_GET_SOURCE but it doesn't work.

Thanks for the help.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
937

Hello,

Welcome to the forums & hope you enjoy being a part of it

I don't think there is any standard tool available for it, but not to worry you've [SAPLink|http://code.google.com/p/saplink/] available at your service.

Install the relevant [plugin|http://code.google.com/p/saplink/wiki/pluginList] to download the source code of the class.

Cheers,

Suhas

5 REPLIES 5
Read only

Former Member
937

Welcome to SCN,

Refer to the methods available in global classes

CL_RECA_RS_SERVICES (for source code),

CL_RECA_RS_CLIF (for interface & implementation details) &

CL_OO_CLASS (For details of attributes & methods).

Search for Wiki/Weblog posts to get more details.

Regards

Vinod Kumar

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
938

Hello,

Welcome to the forums & hope you enjoy being a part of it

I don't think there is any standard tool available for it, but not to worry you've [SAPLink|http://code.google.com/p/saplink/] available at your service.

Install the relevant [plugin|http://code.google.com/p/saplink/wiki/pluginList] to download the source code of the class.

Cheers,

Suhas

Read only

Former Member
0 Likes
937

Suhas,

I have created some wiki links (may be 3-4 months back) which seems similar to this requirement.

[Extracting Implementation details of global Interface using class - CL_RECA_RS_CLIF |http://wiki.sdn.sap.com/wiki/display/ABAP/ExtractingImplementationdetailsofglobalInterfaceusingclass-+CL_RECA_RS_CLIF]

[Information of Class Objects using CL_OO_CLASS |http://wiki.sdn.sap.com/wiki/display/ABAP/InformationofClassObjectsusing+CL_OO_CLASS]

[Source code Download and Syntax Check using CL_RECA_RS_SERVICES|http://wiki.sdn.sap.com/wiki/display/ABAP/SourcecodeDownloadandSyntaxCheckusing+CL_RECA_RS_SERVICES]

Expecting your comments.

Regards

Vinod Kumar

Edited by: Vinod Kumar on May 5, 2011 11:33 AM

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
937

Hey Vinod,

I was unaware of the CL_RECA* classes, my bad

Generally for this kind of requirement i expect SAP to provide system classes viz., CL_ABAP* which are (usually) part of the BASIS package. Wondering why these classes are part of the Real Estate Mgmt package when they qualify to be part of the system classes?

Anyway i'm gonna keep a note of these classes(and your Wiki, of course) for future reference. Thanks!

BR,

Suhas

Read only

Former Member
0 Likes
937

Hi Everyone,

Pretty much this answers my question. Thanks for replying. I was searching the SEO Function Group for days to see if i can find an answer but this gives me the cake.