Use
ABAP source code is stored in the database exactly as you enter it in the ABAP Editor. The display is not automatically standardized (for example, conversion to uppercase characters).
However, you can use the Pretty Printer to standardize the layout of your program to one of the following display variants:
The Pretty Printer also groups together statements that logically belong together by indenting statement blocks.
See also:
Features of the Pretty Printer
Note that converting the ABAP keywords to uppercase can be particularly runtime-intensive, especially with long programs.
Do not use the Pretty Printer until you are satisfied that there are no more syntax errors in the source code.
Procedure
Standardizing the layout
Function |
Procedure |
Uppercase display |
Choose Utilities ® Settings. Under Pretty Printer, set the Uppercase option, and confirm the settings. Choose Pretty Printer. |
Lowercase display |
Choose Utilities ® Settings. Under Pretty Printer, set the Lowercase option, and confirm the settings. Choose Pretty Printer. |
Keywords in uppercase |
Choose Utilities ® Settings. Under Pretty Printer, set the Keyword large option, and confirm the settings. Choose Pretty Printer. |
Indenting blocks
Function |
In textedit control mode |
In table control mode |
Indenting a block |
Select the relevant lines and press Tab. |
Position the cursor at the point in a line up to which you want to indent. Choose (Indent line/block). Repeat for each line you want to indent. |
Removing the indentation for a block |
Select the relevant lines and press Shift + Tab. |
Procedure: Same as for indentation |
Result
When you save, your ABAP source code is stored in the database with all of the layout changes make by the Pretty Printer. When you reload the program, it is displayed exactly as it was stored in the database, regardless of the editor.