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

Read ABAP source

Former Member
0 Likes
743

Hi,

Does anyone know how to load ABAP source code to an internal table.

Indeed, I'd like to write a tool to analyse my code and generate a calling tree.

The "SCAN ABAP-SOURCE" instruction seems not to bo allowed in programs.

Do you know others instruction to do that ?

If not, can someone tell me where programs and function modules are stored (which tables) ?

Thank you for your help,

Quentin

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
706

Use statement READ REPORT to read ABAP sources. It does not have all the functionality of SCAN ABAP-SOURCE though.

Thomas

5 REPLIES 5
Read only

Former Member
0 Likes
706

Hi,

Please check the table TADIR for programs and TFDIR for function Modules.

Regards,

Swapna.

Read only

ThomasZloch
Active Contributor
0 Likes
707

Use statement READ REPORT to read ABAP sources. It does not have all the functionality of SCAN ABAP-SOURCE though.

Thomas

Read only

Former Member
0 Likes
706

Hello

DATA: PROGTXT(72) TYPE C OCCURS 0 WITH HEADER LINE.

READ REPORT REP_NAME INTO PROGTXT.

Read only

Former Member
0 Likes
706

first refer this thread for download abap code into text file.

once this completed than you can upload this text file by just gui_upload fm.

Read only

Former Member
0 Likes
706

Thanks to all for your answers