Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pretty Printer

Former Member
0 Likes
2,172

Hi can anybody tell me , wht is the use of Pretty Printer and how to use it.

thanks in advance

kp

6 REPLIES 6
Read only

former_member582701
Contributor
0 Likes
1,344

I think pretty pinter only makes the tabulation for you.

But I never use it. I prefer dessign the code in my own style

Read only

Former Member
0 Likes
1,344

hi,

the pretty printer alligns ur code perfectly, its like identation automaticallt and also capitalizes all the ABAP keywords

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member