2006 Jun 19 12:27 PM
Hi,
in which table can I find the ABAP program code for report or function modules.
E.g. in SAP BW some code is stored in RSAABAP.
Thanks in advance
Message was edited by: Lutz Grotelüschen
2006 Jun 19 12:32 PM
There are system tables avilable for this,which not only store the code but also the attibute of every object
developed.
All system table name generally starts with : "T"
e.g. : For transaction it's TSTC
Now TADIR tabkle consist all of the object that have been developed
e.g. create a report and save it now go to TADIR
and pass the following parameter :
OBJ_NAME = <name of the report>
you'll have all the attribute.
The TRDIR table contains the attribute and values of abap program
2006 Jun 19 12:35 PM
2006 Jun 19 12:35 PM
Hi Lutz,
You can find all ABAP programs details and function module in table <b>TADIR</b>.This table gives information about all repository objects.
<b>OBJECT will classify type of object in Repository.</b>
Give <b>FUNC</b> for function modules in <b>TADIR-OBJECT</b>.
Give <b>REPS</b> for ABAP program in <b>TADIR-OBJECT</b>.
Table for ABAp codes are <b>REPOSRC</b>
Thanks,
Vinay
2006 Jun 19 12:39 PM
Hai Lutz,
check this table for Abap source code <b>REPOSRC</b>
Regards,
Sridhar
2006 Jun 19 12:39 PM
Hi Lutz:
the table is REPOSRC for storing the source code.
It will be in RAWSTRING format which you cannot read.
YOu can use the read report statament to read the source code.
Regards,
Ravi
2006 Jun 19 12:42 PM
2006 Jun 19 2:23 PM
Hi,
Check <b>REPOSRC</b> for ABAP Source Code
Regards,
Santosh
2007 Jan 03 9:25 AM
I want to read the source code of a method.
I know the class name and method name.
In order to read it with READ REPORT I need a specific string that is stored in PROGNAME of REPOSCR, e.g. for class Z_CL_XYZ method XYZ this is sth. like this:
Z_CL_XYZ=====================CM001
Where can I find the link between the class / method name and this object name?
Or do you have any other suggestions how to read the source code of a method?
2007 Jan 03 1:05 PM
After no answers and a few more time on inspection I found the solution myself.
Just for the ones who are interested:
Method CL_OO_CLASSNAME_SERVICE=>GET_METHOD_INCLUDE provides the name of the include.
So does function module SEO_METHOD_GET_SOURCE that exports SOURCE code AND include name.