Adding Documentation of Parameters and Exceptions in ABAP Doc Comments

You can document parameters and exceptions for methods, events, functions modules, and subroutines.

Context

This function supports you in listing all undocumented parameters and exceptions that relate to the selected element.

Procedure

  1. In the source code editor, navigate to the definition part of the element of the relevant code line.
  2. [Optional]: If no ABAP Doc comment exists, enter "! to start the comment line.
  3. Place the cursor on the position where you want to add the missing parameters or exception.
  4. In the context menu, choose Quick Fix (Ctrl 1), and select Add missing parameters to documentation to add the syntax of the missing parameters and exceptions.
    The name of the missing parameters are added and introduced by a @. You can describe each parameter or exception with the corresponding documentation after the |.
  5. Save the changes.

Results

The documentation is saved and displayed in the source code editor of the ADT and the SAP GUI.