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

Insert comment in your ABAP code on fly

Once i have seen a tool on SDN which can insert comments in your code.

So basically if your code line is some thing like this

TABLES: KNA1.

the tool will change it to :

TABLES: KNA1. "Customer Master

I have tried searching it on SDN blogs but in vein.

I will appreciate if you can suggest links related to such a tool.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 12:04 PM

    Hi,

    This program in the below link takes an existing ABAP report, and does the following:

    • - Attempts to move comments to the end of the line. Added because pretty printer in 4.6 no longer does this

    • - Adds comments (table name) for the tables listed after a TABLES statement if the line has not been commented already.

    • - Adds comments (field name) for data elements, parameters, and select-options that are defined using the LIKE or FOR statement

    • - For ENDLOOP/ENDSELECT adds comment identify the LOOP/SELECT that is being closed

    • - For FORM/ENDFORM adds comment identify the FORM that is being closed

    • - Checks to ensure that the program being modified is either a

    • Local Private Object, or on a transport that belongs to the

    • person running this program. This is to help prevent screwups.

    • - Calls function PRETTY_PRINTER to do the SAP standard pretty print after the custom comments have been created

    http://sap.ionelburlacu.ro/abap/sap2/Beautify_Source_Code.html

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 11:40 AM

    hi,

    that's possible when if u record transaction code with 'SHDB' recording,,

    u can study more about SHDB transaction code to learn more about this,,,

    reward points if useful,

    seshu.

    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.