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

ABAP Source Code

Former Member
0 Likes
595

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

4 REPLIES 4
Read only

Former Member
0 Likes
526

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

Read only

Former Member
0 Likes
526

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.

Read only

Former Member
0 Likes
526

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

Read only

Former Member
0 Likes
526

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.