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:
Standardizing the layout
To format the layout of your programs:
Indenting blocks
Function | In Front-End Editor (Plain Text Mode) | In Back-End Editor |
---|---|---|
Indenting a block |
Select the relevant lines and press Tab. The system indents the selected lines. |
Position the cursor at the point where your indentation should start. Choose with the quick info text 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 . |
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.