10-20-2005 9:47 PM
Hi guys,
I have a wierd question. Where is the ABAP code stored? You can take a look at the ABAP program names through R3TR program ID in table TADIR, but where is the source code stored. Is it in the databse server, if yes which table?
10-20-2005 9:57 PM
Hi Shiv,
You can get the entier program if you use the below command.
DATA: BEGIN OF REPTAB OCCURS 50,
LINE(100).
DATA: END OF REPTAB.
READ REPORT <Program name > INTO REPTAB.
Try,
Kasthuri Rangan Srinivasan.
10-20-2005 10:00 PM
Hi Shiv Kasthala
Table 'trdir' holds some information about the program like program name.
and
Table 'trdirt'holds program code.
trdirt-text is the field that contains this information.
Cheers,
Vijay Raheja
10-20-2005 10:03 PM
Hi Vijay,
TRDIRT will have only the discription of the program. It will not have the code. For your information Please
Regards,
Kasthuri Rangan Srinivasan.
10-20-2005 10:12 PM
10-21-2005 1:51 AM
Thanks guys.
That was a very helpful answer.
I have awarded points too.
10-21-2005 2:22 AM
The source code is stored in table REPOSRC but you will not be able to see it in SE16 as it is stored as RAWSTRING.
You can only read it using
READ REPORT <Program name > INTO ITAB.
Cheeers.
10-20-2005 10:02 PM
Like long texts, programs are stored in database clusters. They are not visible through your normal data dictionary transactions. you have to use the commands provided by ABAP to read them like READ REPORT mentioned above.
Srinivas
10-21-2005 6:35 AM
hi,
furthermore you can look f1 to abap command scan:
SCAN ABAP-SOURCE ...
regards Andreas