SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Using the Pretty Printer to format ABAP Source Code



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Sun Nov 04, 2007 4:27 pm    Post subject: Using the Pretty Printer to format ABAP Source Code Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP Dictionary All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
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.