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

About Pretty Printer

former_member530652
Participant
0 Likes
783

Can u tell me exact use of pretty printer??

5 REPLIES 5
Read only

former_member404244
Active Contributor
0 Likes
707

Hi,

You can use the Pretty Printer function to standardize 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.

Features

The Pretty Printer performs the following functions:

Standardizes the source code display according to the options you set (upper-/lowercase).

Places event, control, and INCLUDE key words on separate lines.

Moves event key words, FORM statements, and MODULE statements to the beginning of the line. In this case, the Pretty Printer function uses the first program line as a reference.

Inserts a blank line before event key words 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 writes subsequent commands on a new line.

Inserts appropriate comment blocks before FORM and MODULE statements that do not have comments. The Pretty Printer function uses the routine name and the USING parameter to fill in the comment blocks.

Left-justifies comments that appear in command lines. Left-justification is only performed on comment lines 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 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.

Regards,

Nagaraj

Read only

Former Member
0 Likes
707

Hi

Sandeep

You can use the Pretty Printer function to standardize 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.

Features

The Pretty Printer performs the following functions:

Standardizes the source code display according to the options you set (upper-/lowercase).

Places event, control, and INCLUDE key words on separate lines.

Moves event key words, FORM statements, and MODULE statements to the beginning of the line. In this case, the Pretty Printer function uses the first program line as a reference.

Inserts a blank line before event key words 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 writes subsequent commands on a new line.

Inserts appropriate comment blocks before FORM and MODULE statements that do not have comments. The Pretty Printer function uses the routine name and the USING parameter to fill in the comment blocks.

Left-justifies comments that appear in command lines. Left-justification is only performed on comment lines 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 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.

plzz reward if my information is usefull to u

i think u r begginner if u need any further help u can contact me on mutyalasunilkumar@gmail.com

plzz dont forget to reward

Read only

Former Member
0 Likes
707

hi sandeep,

Features of the Pretty Printer

You can use the Pretty Printer function to standardize 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.

Features

The Pretty Printer performs the following functions:

Standardizes the source code display according to the options you set (upper-/lowercase).

Places event, control, and INCLUDE key words on separate lines.

Moves event key words, FORM statements, and MODULE statements to the beginning of the line. In this case, the Pretty Printer function uses the first program line as a reference.

Inserts a blank line before event key words 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 writes subsequent commands on a new line.

Inserts appropriate comment blocks before FORM and MODULE statements that do not have comments. The Pretty Printer function uses the routine name and the USING parameter to fill in the comment blocks.

Left-justifies comments that appear in command lines. Left-justification is only performed on comment lines 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 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.

reward if helpful.

regards,

sravanthi

Read only

Former Member
0 Likes
707

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.

We can call the function module in the ABAP Code .Press the Pattern button on Appl. tool bar then u will get box where u write the function module NAME which u want to call in the code by selecting the radio button CALL FUNCTION. In this way we link function module to ABAP Code.

Check the link below:

http://help.sap.com/saphelp_nw70/helpdata/en/c1/79ecc5f23a11d295b700a0c94260a5/content.htm

Regards

Read only

Former Member
0 Likes
707

Hi,

Pretty printer will beautify your code.

It will give you segregate view of your ABAP statements and other program elements..

You can use either Pretty Printer button or Shift+F1 for Pretty Printer.

You can customize your pretty printer through Utilities->Settinges->Pretty Printer.

Regards,

Renjith Michael.