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

Table for ABAP program code

Former Member
0 Likes
3,769

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

9 REPLIES 9
Read only

Former Member
0 Likes
2,238

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

Read only

dani_mn
Active Contributor
0 Likes
2,238

D010SINF

Read only

Former Member
0 Likes
2,238

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

Read only

sridharreddy_kondam
Active Contributor
0 Likes
2,238

Hai Lutz,

check this table for Abap source code <b>REPOSRC</b>

Regards,

Sridhar

Read only

Former Member
0 Likes
2,238

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

Read only

0 Likes
2,238

Hi,

Check the table <b>REPOSRC</b>.

Regards

vijay

Read only

0 Likes
2,238

Hi,

Check <b>REPOSRC</b> for ABAP Source Code

Regards,

Santosh

Read only

0 Likes
2,238

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?

Read only

0 Likes
2,238

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.