‎2007 Jul 25 8:01 AM
Hi all,
Can anyone let me know where is the source code of a report stored
in the application server.
I know that we can read the source code using "Read Report" statement
and this doesnt use any table as the trace doesnt show me any table queried for source code.
Regards,
Simin.R
‎2007 Jul 25 8:07 AM
Hi
Please refer to this thread
Also
. in which table and in which field the source code gets
Table = REPOSRC
(But the source code is stored in RAW / Encoded format,
and we cannot read directly)
2. For reading we have to use READ REPORT syntax
3. Just copy paste
(it will read the report, and download)
(U can change the program name and filename)
4.
REPORT ABC.
DATA : BEGIN OF ITAB OCCURS 0,
F(72) TYPE C,
END OF ITAB.
READ REPORT 'ZAM_TEMP00' INTO ITAB.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'D:\PRG.TXT'
TABLES
DATA_TAB = ITAB
.
Regards
Ravish Garg
<i><b>
Reward if useful to you</b></i>
Message was edited by:
Ravish Garg
‎2007 Jul 25 8:07 AM
Hi,
Z-reports code is stored in files.
If you want use report code in a program, use the ABAP instruction "READ REPORT <prgm name> into itab".
Names of ABAP programs and Includes can be found in SAP table TRDIR and REPOSRC.
Thanks,
CSR.
**reward if helpful.
‎2007 Jul 25 8:09 AM
Hi
In the application server it will be stored in some Memory areas..with the program name ..Like how the Long texts are stored
So when we retrive it take the program name from Database table and with that name it searches the application server memory areas and picks up that and brings
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 25 8:09 AM
Hi Simin,
The ABAP Source code is stored in tables in ASCII format. Table Name is TRDIR.
<b>Reward points for informatory answers.</b>
Best Regards,
Ram.