Posted: Sun Nov 04, 2007 4:27 pm Post subject: Using the Pretty Printer to format ABAP Source Code
You can use the Pretty Printer in the ABAP editor to properly indent the lines of the program which makes program readable.
You can also set your own preferences by using the following method:
1) Go to SE38, ABAP editor. Enter any name of the existing program and click on change.
2) Go to Utilities--> Settings
Choose ABAP Editor tab
Under ABAP Editor, Choose Pretty Printer tab
3) In that
Select the Check Box Indent
Select the Check box Convert Upper-/Lower Case
under this Select Keyword Uppercase
After performing the above steps, now Click on Pretty printer button in the editor.
Then your program lines will be indented. And all the keywords appear in Upper Case.
Features of the Pretty Printer
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.