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

Which SAP table stores the ABAP program Source Code

Former Member
0 Likes
703

Hi All,

Which SAP table stores the ABAP source code .

Is it possible to retrieve the abap program code from database table

wherein it is stored .

Scenario :

In our project SAP got decommissioned and SAP database is migrated to Oracle . As SAP is decomissioned , we are not able to access the SAP frontend . But we need a program code to service a request . Is it possible to retrieve the program code from the database

which is migrated to oracle .

Thanks

Shikha

4 REPLIES 4
Read only

Former Member
0 Likes
615

Hi,

I do not know whether any table stores the source code of programs but given below is the sample code to read the source code of a given program and prints the same as output.

data : begin of itab occurs 0 ,

w_field(100) type c,

end of itab.

read report sy-repid into itab.

if sy-subrc eq 0.

loop at itab.

write : itab-w_field.

endloop.

endif .

If it can be helpful to you then pls reward points

Read only

Former Member
0 Likes
615

All sap abap programs are stored in TRDIR table...you just check within this table.

Regards.

Dara.

Read only

Former Member
0 Likes
615

Hi shikha,

You can use this API. 'RPY_PROGRAM_READ'. Just pass the program name and you will get all the coding part of the program.

Reward points if helpfull

Thanks,

vamsi

Read only

Former Member
0 Likes
615

Hi,

check the table REPOSRC-field DATA

This stores the source code.

(but its in RAW format)

Regards

Kiran Sure

Edited by: Kiran Sure(skk) on Apr 29, 2008 1:09 PM