‎2008 Apr 28 8:09 PM
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
‎2008 Apr 29 7:25 AM
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
‎2008 Apr 29 7:48 AM
All sap abap programs are stored in TRDIR table...you just check within this table.
Regards.
Dara.
‎2008 Apr 29 8:12 AM
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
‎2008 Apr 29 8:38 AM
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