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

SAP tool for analizing abap reports

Hi all,

does anyone knows if sap has a tool for simple abap program analizes?

I'm searching for a tool able to count the code lines of a specific program. Trying to measure the abap developer tru the produced lines of code.

Display the abap program to see the number of lines of code is not a option. 😉

Thanks and regards,

Pedro Rosa

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 12:01 PM

    hi

    good

    i dont think there is any such tool provided by sap which can solve your problem.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 10:52 PM

    You can do something like this -;)

    DATA: fullname(30) TYPE c.
    
    TYPES: BEGIN OF ty_trdir,
           name LIKE trdir-name,
           END OF ty_trdir.
    
    TYPES: BEGIN OF ty_source_table,
           linea(150) TYPE c,
           END OF ty_source_table.
    
    DATA: t_trdir TYPE STANDARD TABLE OF ty_trdir,
          t_source_table TYPE STANDARD TABLE OF ty_source_table.
    
    DATA: w_lines TYPE i.
    
    FIELD-SYMBOLS: <fs_trdir> LIKE LINE OF t_trdir.
    
    SELECTION-SCREEN BEGIN OF BLOCK test WITH FRAME.
    PARAMETERS:
               prgname LIKE trdir-name.
    SELECTION-SCREEN END OF BLOCK test.
    
    START-OF-SELECTION.
      PERFORM load_data.
    
    *-----------------------------------------------------------*
    *       FORM LOAD_DATA                                      *
    *-----------------------------------------------------------*
    FORM load_data.
    
      CONCATENATE prgname   '%' INTO fullname.
    
      SELECT name
      INTO TABLE t_trdir
      FROM trdir
      WHERE name LIKE fullname.
    
    LOOP AT t_trdir ASSIGNING <fs_trdir>.
    
      READ REPORT <fs_trdir>-name INTO t_source_table.
      DESCRIBE TABLE t_source_table LINES w_lines.
      WRITE:/ 'Number of lines: ', w_lines.
    
    ENDLOOP.
    
    ENDFORM.
    

    Greetings,

    Blag.

    Edited by: Alvaro Tejada Galindo on Jan 30, 2008 5:53 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 31, 2008 at 04:27 AM

    Hi,

    Use transaction SE30. There in Dialog Fram give your program name and execute. It will give you the analysis.

    Pls reward points if good.

    Regards,

    Renjith Michael.

    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.