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

How a Abap Program is Stored ?

Hi,

Can anyone tell me how a Abap Program is stored. Is that also in the form of table.If so in which table can i see the Source code.

Regards,

Gowtham Kuchipudi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2005 at 05:24 PM

    Hi Gowtham,

    The source code is stored in table <b>REPOSRC</b> field <b>DATA</b>. But it is in compressed form . You can however get the source in an internal table using Read Report statement.

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 07, 2005 at 05:20 PM

    I don't that I ever found the actual table. But I think it is stored in some kind of table. You can access this code in an ABAP program in the following way.

    
    report zrich_0001
           no standard page heading
           line-size 300.
    
    parameters: p_prog(30) type c.
    
    data: begin of s occurs 0,
          txt(300) type c,
          end of s.
    
    clear s. refresh s.
    read report p_prog into s.           "Get source into table S
    
    loop at s.
      write:/ s-txt.
    endloop.
    
    

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 07, 2005 at 05:27 PM

    Hi,

    But if i take only 72 characters length instead of 300 that u have specified , it's throwing an error that "READ_REPORT_LINE_TOO_LONG". But i think in the report program also the maximum length of a line is 71. Then why it is throwing that error.

    Regards,

    Gowtham Kuchipudi.

    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.