Show TOC

Adding and Removing CommentsLocate this document in the navigation structure

Context

You have the following options for commenting source code:

  • ABAP comments to explain a particular part or section of source code
  • ABAP Doc comments for providing information in the code element information popup, ABAP Element Info view, and in the code completion list

Editing ABAP Comments

Context

ABAP comments start with * or ".

Note You can also use the following shortcuts:
Shortcut Function Description
Ctrl + < Add Comment The editor pastes an asterisk (*) at the beginning of the line.
Ctrl + > Remove Comment The editor removes the existing asterisk (*) at the beginning of the line.
Ctrl + 7 Toggle Comment The editor pastes or removes an asterisk (*) at the beginning of the line.
Note In addition, you have the following options for working with ABAP comments:
  • In the context menu of the editor, choose Source and select the corresponding entry.
  • In an ABAP class and procedure, enter an asterisk (*) to split source code into logical sections.
  • Enter an asterisk (*) to disable ABAP statements.
  • Enter double quotation marks (") to describe source code within a line.