You can use the Pretty Printer function to improve the layout of your program. This function arranges associated key words in groups and indents individual statements clearly. The Pretty Printer ensures that your program layout meets the guidelines described in the ABAP User's Guide. The Pretty Printer:
The Pretty Printer does not break down loops and control processing blocks that are contained on a single line. Also, the Pretty printer does not separate statements associated with a WHEN condition if the WHEN statement is contained on one line. To call the pretty printer, select Program
® Pretty Printer.For Best Results
If you have an error in your syntax, the Pretty Printer function cannot allow for it. For this reason, do not use the Pretty Printer before carrying out a syntax check. Using the Pretty Printer with incorrect syntax can lead to unpredictable results.
You should also ensure that key words, field names, variables and other program elements do not extend beyond the end of one line. Since the Pretty Printer works one line at a time, it may move parts of words but does not join them together.
Moving Lines
You can use the Shift function to indent code. To use this feature, position your cursor on the line at the point to which you want to indent the code:

Then, press Shift to shift the text to the current cursor position:
