Professional Documents
Culture Documents
By Suresh Kumar Parvathaneni Working with Colors and Fonts: Switch to the new editor (if the default editor shown is the old editor). In the New ABAP editor, click on the button options available at the bottom of the right hand side, as shown in the below screen shot:
Using this, you can design how the screen should look like, For example, you can dictate how the comments should appear (like Font, size, foreground color and background color). Let us take the same comments section for our scenario here. Comments are currently displayed as shown below:
Now click on the options button and select Fonts and Colors. Select Comments from the list box:
Now change the way you would like the options to appear in this section:
Working with Code Templates: To view the Code Templates currently available, Click on Options as shown earlier. Now click on Code Templates option available on the left side.
You would observe the code templates available for use with the editor. Click on any code template to understand further.
Above screenshot is for DO. We would use this for our demo purpose to better understand the code template. Write some sample code in your editor.
Now select your program code and click the right button of the mouse. Select -> Format -> Surround by template -> Do () (as shown in the following screenshot)
Creating custom code template: Now we would work on creating our own code template for our future use. As observed in the earlier screenshots, there is no code template available for subroutine. Let us create a code template for the same.
Select your code and click on right button. Select Format -> Extract template
Click on OK.
Now we need to define the position where the selected text (surrounded text) to appear.
Click
on
the
empty
line
between
form
and
endform
and
click
on
Insert
tag
Save and exit. To test our code template, write a sample code in our program.
Now just enter the form name to complete your subroutine definition. Setting Break-points: Open the new ABAP editor and write some sample code in it.
Activate your program. To set the break-point, click on indicator margin, available on the left side of the line numbers. (See the screenshot below):
This article, the first part of a two-article series, takes you on a brief tour of the features available in the TM new ABAP editor (step by step with screenshots) Pre-requisites The new ABAP editor is available with SAP GUI for windows 6.40 patch level 10 or higher. However this new editor is supported from the SAP Version SAP Netweaver 2004s. Shifting to ABAP
TM TM
New Editor
TM
Start any of the following transaction codes to access the ABAP SE38 SE37
workbench:
SE24 SE37
We would use SE38 for our demo purposes. Procedure to shift between Old ABAP
TM
TM
Editor:
Click
New Editor
TM
Display Features Following are some of the features that could be observed while writing the code: Line Numbers As observed in the above screenshot, the new ABAP navigation through the code. Changed line indicators The changed lines in the current session are marked with .
TM
These indicators would vanish once you come out of the program.
Previous Bookmarks Bookmarks allow in navigating and code editing. There are 9 numbered bookmarks provided by SAP and unlimited unnumbered bookmarks. Bookmarks could be accessed by the right click of the mouse in TM the Indicator Margin (The complete left portion of the ABAP editor).
To set a bookmark, right click on the Indicative Margin, click on Bookmarks --> Bookmark 0 (Bookmarks are numbered 0 to 9). A Blue flag with the bookmark number would appear on the Indicative Margin. To navigate to any bookmark marked earlier, right click on the Indicative Margin, Go to Bookmark --> Bookmark 0. Code Hints Code hints appear as you type in ABAP following occurs:
TM
When typed P, nothing appears. When typed PA, code hint PACK appears. When typed PAR, code hint PARAMETERS appears.
Press TAB to choose the given code hint. Changing the Font and Colors of coding environment Click on , available at the right side bottom of the editor. Click on Fonts and Colors on the left side of the window that is appeared after clicking. From here, we can set different colors and fonts for different elements on the editor. Window Splitter The window splitter allows you to work on different parts of the code simultaneously. The window could be set to splitter mode by double clicking the splitter line above the vertical scrollbar (shown below).