Skip to Content
author's profile photo Former Member
Former Member

Parsing ABAP Code

Hi guys,

I have a wierd question. Where is the ABAP code stored? You can take a look at the ABAP program names through R3TR program ID in table TADIR, but where is the source code stored. Is it in the databse server, if yes which table?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 08:57 PM

    Hi Shiv,

    You can get the entier program if you use the below command.

    DATA: BEGIN OF REPTAB OCCURS 50,

    LINE(100).

    DATA: END OF REPTAB.

    READ REPORT <Program name > INTO REPTAB.

    Try,

    Kasthuri Rangan Srinivasan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 09:00 PM

    Hi Shiv Kasthala

    Table 'trdir' holds some information about the program like program name.

    and

    Table 'trdirt'holds program code.

    trdirt-text is the field that contains this information.

    Cheers,

    Vijay Raheja

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 20, 2005 at 09:02 PM

    Like long texts, programs are stored in database clusters. They are not visible through your normal data dictionary transactions. you have to use the commands provided by ABAP to read them like READ REPORT mentioned above.

    Srinivas

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2005 at 05:35 AM

    hi,

    furthermore you can look f1 to abap command scan:

    SCAN ABAP-SOURCE ...

    regards Andreas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.