Application Development 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 ABAP source

Former Member
0 Kudos

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

ThomasZloch
Active Contributor
0 Kudos

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

Thomas

5 REPLIES 5

Former Member
0 Kudos

Hi,

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

Regards,

Swapna.

ThomasZloch
Active Contributor
0 Kudos

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

Thomas

Former Member
0 Kudos

Hello

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

READ REPORT REP_NAME INTO PROGTXT.

former_member181995
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks to all for your answers