Skip to Content
avatar image
Former Member

Read ABAP source

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Sep 09, 2008 at 01:39 PM

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

    Thomas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 09, 2008 at 01:39 PM

    Hi,

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

    Regards,

    Swapna.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 09, 2008 at 01:40 PM

    Hello

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

    READ REPORT REP_NAME INTO PROGTXT.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 09, 2008 at 01:41 PM

    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.

    How to download a ABAP report to text file

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 09, 2008 at 01:57 PM

    Thanks to all for your answers

    Add comment
    10|10000 characters needed characters exceeded