‎2011 May 05 6:03 AM
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.
‎2011 May 05 6:51 AM
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
‎2011 May 05 6:49 AM
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
‎2011 May 05 6:51 AM
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
‎2011 May 05 7:02 AM
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
‎2011 May 05 7:14 AM
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
‎2011 May 05 7:13 AM
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.