Improving the
Layout
You use this procedure to format your source code in the ABAP Editor. The ABAP source code is stored in the database in unformatted form.
However, you can use the Pretty Printer to standardize the layout of your program. It also groups together statements that logically belong together by indenting statement blocks.
See also:
Features of the Pretty Printer
To format the layout of your programs:
...
1. Choose Utilities → Settings.
2. Under Pretty Printer, set the options you need, and confirm the settings. The following options are available:
¡ Uppercase display: all characters are converted to uppercase
¡ Lowercase display: all characters are converted to lowercase
¡ Keywords in uppercase: only the ABAP keywords are converted to uppercase
¡ Keywords in lowercase: only the ABAP keywords are converted to lowercase
3. Press the Pretty Printer button.
Function |
In Front-End Editor (Plain Text Mode) |
In Back-End Editor |
Indenting a block |
Select the relevant
lines and press Tab. |
Position the cursor at the point where your indentation should start. Choose Repeat for each line you want to indent. |
Removing the indentation for a block |
Select the relevant lines and press Shift + Tab. |
Same as above. |
When you save the changes, your ABAP source code is stored in the database with the layout produced by the Pretty Printer. When you open the program again you see get the same layout, regardless of the editor.