Show TOC

 Features of the Pretty PrinterLocate this document in the navigation structure

Use

You use the Pretty Printer to standardize the layout of your program. This function arranges associated keywords in groups, indents individual statements clearly and ensures that your program layout meets the guidelines described in the ABAP User's Guide.

Features

The Pretty Printer has the following functions:

  • Standardizes the source code layout.
  • Places EVENT, CONTROL, and INCLUDE keywords on separate lines.
  • Moves EVENT keywords, FORM statements, and MODULE statements to the beginning of the line. The first program line is used as reference.
  • Inserts a blank line before event keywords that are not preceded by a blank or a comment line.
  • Indents all command lines and control structures associated with an event by 2 spaces.
  • Locates commands that extend beyond one line and places the subsequent commands on a new line.
  • Inserts appropriate comment blocks before FORM and MODULE statements. The routine name and the USING parameter are used to fill in the comment blocks.
  • Justifies to the left comments that appear in command lines. This applies only to comment lines with length of 32 characters or less that begin with double quotes ("). Pretty Printer starts the comment at column 40.

The Pretty Printer does not break down single-line loops and control processing blocks. It also does not separate statements associated with a WHEN condition if the WHEN statement extends over only one line.