Skip to Content

How to create a middle-line comment in ABAP code?

I'm wondering if there is any way to comment out part of a line, like you can do in c++ with /*this*/. The only comments I know about are " this which always goes to the end of the line and the *these , which do not work mid-line.

Is it possible? abap has surprised me a few times before.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Nov 26, 2017 at 11:43 AM

    No, this is not possible.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 26, 2017 at 12:31 PM

    I agree with Horst and Frédéric. Anyway, as ABAP has usually long statements, it's frequent to use several lines for one statement, so the " can be used at the end of every line, so in the middle of the statement, achieving almost the same goal.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 26, 2017 at 09:15 AM

    Hi

    not possible

    only star at the beginning of a column or " anywhere in a line and comment all the rest of the line

    regards

    Fred

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2017 at 07:39 AM

    Not Possible

    Add comment
    10|10000 characters needed characters exceeded