‎2007 Feb 28 3:41 PM
Hi can anybody tell me , wht is the use of Pretty Printer and how to use it.
thanks in advance
kp
‎2007 Feb 28 3:44 PM
I think pretty pinter only makes the tabulation for you.
But I never use it. I prefer dessign the code in my own style
‎2007 Feb 28 3:46 PM
hi,
the pretty printer alligns ur code perfectly, its like identation automaticallt and also capitalizes all the ABAP keywords
‎2007 Feb 28 3:47 PM
Hi,
pretty printer is a functionality of ABAP editor, that makes identation of your abap code.
You can define your identation preferences in the menu Utilities-settings-Abap editor-prettty printer.
Regards
‎2007 Feb 28 3:48 PM
Pretty Printer is used to INDENT the code in SE38
in menu goto-->utilities -->Pretty printer u can get some more options
http://help.sap.com/saphelp_nw04/helpdata/en/d1/801ad6454211d189710000e8322d00/content.htm
Message was edited by:
Chandrasekhar Jagarlamudi
‎2007 Feb 28 3:48 PM
Hi,
open your program and click the pretty Printer button.
Pretty Printer is used to format the ABAP Code we write in ABAP Editor ,like KEY WORDS in Capitals and remaining are in small letters which is also depend on system settings.
Pretty Printer : is used to Aligned the code Properly. Means it converts the key words into cap& other words in small letters.
U can set the property of pretty printer by settings-> pretty Printer .
It is having other options also in it.
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.
Regards,
Sruthi
‎2007 Feb 28 3:48 PM
Hello KP,
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/55/f2cc40c16b7a4d94cf49ef87982239/frameset.htm
Vasanth