Sie sind auf Seite 1von 57

Generated by Jive on 2013-11-06+01:00

1
ABAP Development: Shortcuts that can make
an ABAP'er life easier
Posted by Yuvaraj S Sep 17, 2013
Introduction

ABAP is quite different from many contemporary programming languages in several ways.
Some aspects of ABAP would make us wonder why is it made this complex while some
aspects are so awesome and more comfortable for a programmer than any other language
can provide.

Two of those things that I find so cool are:
Its ingenuous IDE (ABAP Editor) and
Its cool Debugger

Eventhough the SAP IDE does not support some of the features which more prominent
IDE's like Eclipse etc have, I find it so comfortable to code in ABAP Editor compared to
others. The reason is because of the below shortcuts and customizations available with it. I
am listing the few which I use constantly and without which I cannot think of coding ABAP.

Most of the programmers even with a little bit of ABAP experience would have come accross the details listed here. If you have, please
ignore and if you haven't then the stage is yours..

Shortcut What it does
Ctrl + D Duplicate any line.
eg. i_vbap TYPE STANDARD TABLE OF vbap +
Ctrl-D = i_vbap TYPE STANDARD TABLE OF vbap
i_vbap TYPE STANDARD TABLE OF vbap
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
2
Ctrl + / Jump to the "command field" where we enter
t-codes. This comes really handy and saves
a jump from keyboard to mouse and back to
keyboard just to click on the box.
Ctrl + J Convert to Proper case where the first letter
of every word becomes a capital letter. This
is pretty useful when writing comments.
eg. * this is a comment which will give absolutely no
useful information will be changed to
* This Is A Comment Which Will Give Absolutely No
Useful Information
Ctrl + I &
Ctrl + Shift + I
Incremental search. This is a little improved
'Find' (Ctrl + F) function which searches
as soon as you type. Useful for impatient
people. Add shift to search backwards.
Ctrl + K Toggle between Upper case and Lower
Case.
Alt + Selection This is useful in situation where you need
to select only the field names of a particular
table.
eg.
caufv-aufnr,
caufv-werks,
caufv-objnr,
caufv-plnbez,
caufv-gamng,
caufv-gasmg,
caufv-gmein,
caufv-plnnr,
caufv-plnal,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
3
caufv-dispo,
caufv-fevor,
caufv-cy_seqnr ,
caufv-aufpl,
caufv-gstrp,
caufv-gltrp,
caufv-gstrs,
caufv-gltrs,
caufv-gstri,
caufv-gltri,

In these values, u can select only the field
names by pressing Alt key and get the
clipboard filled like this.

aufnr,
werks,
objnr,
plnbez,
gamng,
gasmg,
gmein,
plnnr,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
4
plnal,
dispo,
fevor,
cy_seqnr ,
aufpl,
gstrp,
gltrp,
gstrs,
gltrs,
gstri,
gltri,
Tab & Shift tab Increase and Decrease Intend
Ctrl + O Goto a particular line in the program
Ctrl + Shift + S Save your program in Desktop in .abap
format. I came know about .abap only after
learning this short cut.
Ctrl + Selection When you do a selection with **** + -> or
<- hold on to Ctrl to jump every word in that
direction.
Ctrl + . & Ctrl + , Comment and Un-Comment selected lines.
Ctrl+Alt+T
Swaps current line with the Upper Line.
eg. INCLUDE ZTEST_ABAP_HTTP_CLIENT_TOP.
INCLUDE ZTEST_ABAP_HTTP_CLIENT_C01.
becomes
INCLUDE ZTEST_ABAP_HTTP_CLIENT_C01.
INCLUDE ZTEST_ABAP_HTTP_CLIENT_TOP.
Ctrl+Shift+L/X Deletes the whole line
Ctrl + ] & Ctrl + [ Jump to previous or next paragraph.

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
5
A paragraph is created by leaving an empty line
between statements.
Ctrl + Shift + Num8 &
Ctrl + Shift + Num2
Move the lines up and down in the editor
window while the cursor stays in the same
place.


This is similar to Page Up & Page Down but
instead, it does not scroll an entire page but
only one line.
Ctrl + Spacebar
Display options to complete a command.

Eg. After typing CREATE, Ctrl + Spacebar
will show you the list to choose DATA or
OBJECT..


More Editor Tools:

Apart from this, there are a few other things that can be set in Editor options

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
6

like,

Code Templates



ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
7
Here I use a template for the text. This could be a text that is used for marking modifications
or Defenition and implementation of local classes etc.
* Begin of Insertion <SID>K12345 <username> * End of Insertion <SID>K12345
<username>

i.e when I press i* in the editor, it will prompt for code completion..


When I press Tab for completion, it pops up for TR Number


The TR number that we give will be added in the comment.
Variable Name Suggestions
This is just a small setting but it will save you from Copy pasting or re-typing small words.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
8

When you check this box, it will suggest even for variable names like

Particularly useful for longer variable names.


Conclusion

Apart from the editor and debugger functions, the navigation and where used-list are other
funtionalities which we use more often. Especially the code maintenance and support
activities are comparitively less hectic just because these features.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
9

Another cool way to extend its core editor functionality for customizations could be by
providing API's even for the application programmers to code and customize the editor
features. It will also add to the creativity aspect on SAP side since any third programmer
could come with an awesome idea as an editor extension.

As far as I have explored, I havent found any BADI or classes which can be used to perform
editor functions. May be I have to look more or wait...


Update: I got impressed with the response for this blog and it made me dig deeper inside the
subject and came across this.
Programming Shortcuts - The GEEK Style:

Most of the shortcuts listed and not listed here can be seen from the SAP-GUI editor
options.

Again, click on the editor options button in the bottom-right corner of the SAP Editor screen,

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
10


and choose...


Now.. Most of the shortcuts listed above are available in the above list.
We can re-assign any of the actions with any shortcuts we desire..
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
11

There are also cool actions which are not assigned to any shortcuts, Copy Append is one
such shortcut which I find to be very useful, un-assigned.

I am assigning a new shortcut Ctrl + Alt + C for copy append..


Now by pressing Ctrl + Alt + C, I can append contents into my clipboard.

Eg.


ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
12

+ Ctrl + Alt + C + =



Similarly you can set shortcuts for Cut Append, Navigating to Bookmarks, Formatting
Selected text etc...
13143 Views Tags: abap, code, editor_in_abap
Sep 17, 2013 12:15 PM Fred Verheul
Hi Yuvaraj,

Thanks for sharing these shortcuts and other tips.
Though I consider myself an experienced ABAP developer, there were a few shortcuts I
didn't know yet.
And since I'm not working as much in the new Eclipse editor as I'd like to, these will still
come in handy the next couple of years.

Best regards, Fred
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
13
Sep 17, 2013 12:55 PM Chandra Shekhar Agarwal
Thanks for sharing
Sep 17, 2013 12:58 PM Yuvaraj S Fred Verheul in response to
Hi Fred,

Thanks a lot for your kind words.

I hear people say that Eclipse is particularly useful when we want code in multiple platforms
at the same time like Netweaver JAVA, mobile and ABAP. As far as application developers
are considered, SAP GUI editor cannot be replaced, atleast for a couple of years.
Sep 17, 2013 1:13 PM Ravi Shankar
Nice Info.... Alt+selection is very useful .Thanks.
Sep 17, 2013 1:21 PM Sijin Sij
Really helpful and going to implement some techniques in my daily routine.

Thanks for sharing.
Sep 17, 2013 1:59 PM Utkarsha Khadke
Cool info!
However, I was wondering if you knew the shortcut to maximizing & minimizing the Editor
windows & moving them over the screen. This comes in handy when you are comparing
what is displayed on 2 separate windows of the SAP GUI.
Sep 17, 2013 2:09 PM manjunatha k
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
14
Good job Yuvraj..........Thanks for sharing
Sep 17, 2013 2:34 PM Yuvaraj S Utkarsha Khadke in response to
Well, for comparing different parts of the same program, I would recomment the embedded
splitter, the small button on the upper right corner of your editor screen,


when you are comparing two different programs, I would go for SE39.

But if you really insist on using different windows, then u can make use of the Windows short
cuts,

Alt + Space , R - Restore,
Alt + Space, X - Maximize,
Alt + Space, N - Minimize and
Alt + Space, M - Move the window....

Hope it helps,
Yuvaraj S
Sep 17, 2013 2:58 PM Utkarsha Khadke Yuvaraj S in response to
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
15
Oh yeah. That helps! thanks a lot!
Sep 17, 2013 3:07 PM suresh alapati
it would help a lot and reduces time.thanks for sharing.
Sep 17, 2013 3:59 PM Rodolfo Felipe Celante
I would like to contribute with 6 more shortcuts.

Ctrl + L = All text lowercase
Ctrl + U = All text uppercase
Ctrl + N = Open a new Window in SAP
Shift + F1 = Execute Pretty Printer
Ctrl + F2 = Check Sintax
Ctrl + F3 = Activate Object.

Best regards
Sep 17, 2013 4:32 PM Naresh Krishnamoorthy
Valuable Info...Many Thanks for the share.

Best Regards,
Naresh K.
Sep 17, 2013 4:47 PM Mayur Priyan
Hi,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
16

Good work.

I am adding few more to shortcuts to your list.

Ctrl+F - Search
Ctrl+G - Find next ( when the Search window is closed )
Ctrl+O - Go to line
Ctrl+L - Small letters
Ctrl+U - Uppercase letters
Ctrl+J - Camel case letters
Ctrl+K - Switch between Upper and Lower Case
Ctrl+H - Find and Replace
Ctrl+Shift+I - Increment search Backward
Ctrl+Shift+S - Save Hardcopy
Ctrl+Shift+L/X - Deletes whole line
Ctrl+Shift+V - Gives All Paste options
Ctrl+Alt+T - Swaps line with Upper case

Regards,
Mayur Priyan
Sep 17, 2013 5:05 PM Eric Peterson
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
17
Thanks for sharing. Every time someone shares something like this I pick up one or two
more tricks.

I do have one correction, though. Ctrl + J converts a selection to proper case, not camel
case.

This Is Proper Case.
ThisIsCamelCase.
Sep 17, 2013 8:11 PM santhosh surapuram
Thanks for sharing the info
Sep 18, 2013 5:59 AM KIRAN RAJAN
Hi Yuvaraj,
thank you for sharing the document
Sep 18, 2013 9:00 AM Yuvaraj S Rodolfo Felipe Celante in response to
I have not been a big fan of doing Activate, Check etc using Ctrl + Function buttons. I have
always felt as if the fucntion keys belong in a diffrent island . Thats why I didnt mention
any of those. Its a biased opinion though.
Sep 18, 2013 9:01 AM Yuvaraj S Eric Peterson in response to
Thanks for mentioning. I have corrected it now..
Sep 18, 2013 9:06 AM Yuvaraj S Mayur Priyan in response to
Thanks for expanding the list.
You are awesome..!
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
18

Ctrl+Alt+T Swaps with the upper line (not Upper case).
and Ctrl+Shift+V does not work in SAP Netweaver 7.2
Sep 18, 2013 9:06 AM Nellai Muthu Kumar
Yuvraj,

Useful Information..Thank you..


Warm regards,

Nellai Muthu..
Sep 18, 2013 9:42 AM Suhas Saha
Judging from the responses i think you should have posted this as a WiKi so that others
could have added to the list of shortcuts easily

If you have already done so, i'll then ask you to add the link to your blog for easy reference

- Suhas
Sep 18, 2013 10:46 AM Mayur Priyan Yuvaraj S in response to
Hi,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
19

Yup, Ctrl+Alt+T - Swaps line with Upper line* . It was a typo ..
Sep 18, 2013 11:59 AM Phillip Morgan
A definite Like!
I knew most of the shortcuts but the ones I did not know are awesome (ex.:Ctrl+Alt+T).
Just one thing:
For commenting code I do this:
CTRL < to comment
CTRL > to uncomment (they are usually on same key so this is with SHIFT)
Could not get yours to work.

Thanks!
Sep 18, 2013 12:48 PM Yuvaraj S Suhas Saha in response to
Thanks for ur comment

Posting it as a Wiki would have been better. Anyway I am updating the list when someone
mentions any lesser known shortcut..
Sep 18, 2013 12:55 PM Yuvaraj S Phillip Morgan in response to
Well, thanks to Mayur Priyan for Ctrl+Alt+T...
Sep 18, 2013 1:12 PM vaibhav sonawane
Hi Yuvaraj,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
20
Very informatic.
Thanks for sharing.

Best regards,
Vaibhav
Sep 18, 2013 1:16 PM Sathish GS
Great Job Yuvraj.
Really useful info for everyone!!.

Thanks a lot,
Sep 18, 2013 1:29 PM KIRAN RAJAN Mayur Priyan in response to
hi,
Ctrl+Shift+V very useful one
thank you
Sep 18, 2013 1:52 PM Mayur Priyan KIRAN RAJAN in response to
Hi Kiran,

i am glad you found it useful.

Cheers
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
21
Sep 18, 2013 1:56 PM Satbirsingh Hundal
Hi Yuvaraj,
Very useful info,
Thanks for sharing.

Best Regards ,
Satbir
Sep 18, 2013 2:14 PM kavyashree m j
Thanks for sharing!
Sep 18, 2013 3:45 PM Rajesh Akarte
Useful information thanks for sharing.
Sep 19, 2013 5:14 AM Ayyam Perumal B
Hi Yuvraj,

Simple, Crisp, and Useful Information that i hope all Abapers should be aware of.
Presented very clean and attractive. Good work. Keep Going..

Regards,
AyyamPerumal
Sep 19, 2013 6:55 PM venkata vamsi krishna ch
Thanks for sharing tips ..will reduce some typing stuff
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
22

Reagrds,
Vamsi
Sep 20, 2013 2:15 AM Christian Glenn Nieveras
Thank you for sharing this knowledge.

Regards,
Christian
Sep 20, 2013 2:33 AM Garth Joshua
Thanks for sharing Yuvaraj. Ctrl + '/' certainly saves one quite a bit of time.

Ctrl + SPACEBAR - Gives you a predictive drop-down list of commands for a keyword. This
only works once the IDE has proposed a keyword. As an exmple, type 'in' , the IDE will
propose 'INCLUDE TYPE' (or other), then hit Ctrl + SPACEBAR.

Cheers
Sep 20, 2013 6:00 AM Ramesh T
Helpful document...

I am added few short cuts

Ctrl + T - Converts first letter CAPITAL
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
23

Example:
fld1(20) TYPE c,

select and Ctrl + T
It Changes like this

Fld1(20) type c,

Ctrl + [ - Go to first line of a Paragraph
Curser will be in first line
| TYPES: BEGIN OF ty_excel, Fld1(20) type c, fld2(20) TYPE c, fld3(20) TYPE c, END OF ty_excel.
Ctrl + ] - Go to last line of a Paragraph
Curser will be in last line
TYPES: BEGIN OF ty_excel, Fld1(20) type c, fld2(20) TYPE c, fld3(20) TYPE c, | END OF ty_excel.

Alt + Selection
We can add and delete values in selected area
Select with Alt + Selection and Delete
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
24

TYPES: BEGIN OF ty_excel, Fld1(20) type fld2(20) TYPE fld3(20) TYPE
END OF ty_excel.

Select with Alt + Selection and Enter values

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
25
Regards,
Ramesh.T
Sep 20, 2013 6:00 AM Yuvaraj S Garth Joshua in response to
Hi Garth,

I came across this 'Ctrl + Spacebar' shortcut, but this does not work with
SAP_BASIS 701 & SAP_ABA 701 (the version that I use)..

Any idea from which version it works?
Sep 20, 2013 6:55 AM Sanil Bhandari
Very useful information

Regards
Sanil Bhandari
Sep 20, 2013 7:22 AM Garth Joshua Yuvaraj S in response to
Hi Yuvaraj,

This feature is available on version 7.02, but have used it on previous versions as well.

Cheers
Sep 20, 2013 9:38 AM Yuvaraj S Ramesh T in response to
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
26
Thanks for the Suggestions Ramesh,

Added your suggestions in the list..
Sep 20, 2013 9:45 AM Yuvaraj S Garth Joshua in response to
Thanks for reply,

I figured it out finally. The cursor position should also be in the right place for the editor to
propose.

Eg. DATA<space> and Ctrl + spacebar suggests for Begin-of or End-of..
Sep 20, 2013 9:52 AM Ramesh T Yuvaraj S in response to
Thank You..
Sep 20, 2013 9:55 AM Nilesh Mohite Yuvaraj S in response to
Hello Yuvaraj,

Thanks a lot for shareing such a valuable Information with us.
Its really useful to me

Thanks,
Nilesh.
Sep 20, 2013 10:44 AM OmChandra L
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
27
Hi ,
if we define a Structure.This feature is avalible from EHP5
1.Type 'TYPE' and press Ctrl + Space
2.Along with this without moving the cursor press Shift + Enter and give the DB table
name .
3.Click on Preview TYPE and Select the fields Required
4.Press Ok.
Here we will get Structure and fields descriptions automatically.

Ex: types : begin of ty_mara,
matnr type mara-matnr, "material number
mtart type mara-mtart, "material type
end of ty_mara.


Regards,
OmChandra
Sep 20, 2013 11:55 AM Madhu Vadlamani
Really good one.

Regards,
Madhu.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
28
Sep 20, 2013 1:35 PM Aby Jacob
Thanks Yuvaraj !!

Appreciate your ABAP tips
Sep 20, 2013 2:03 PM Purushottam Sonawane
Hi Yuvaraj,

I had bookmarked your blog yesterday itself but came to know the real importance of it today
. Didn't know many of them like alt+selection. Really helpful shortcuts and actually I enjoyed a lot
using them. Keep sharing such informative things.

Cheers,
PS
Sep 20, 2013 3:18 PM Rodolfo Felipe Celante
Hi experts,

I remembered one more shortcut to help us.
To assist in locating codes, can be a bookmark, using a combination: CTRL + ALT + (0 to 9).
To go to bookmark created, use combination CTRL + (0 to 9).

Example:
CRTL + ALT + 2 (Create a bookmark)
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
29
CTRL + 2 (Go to bookmark).

Best regards.
Sep 20, 2013 11:07 PM Krishna Teja Peddada
Hi Yuvaraj,

thanks to make time to share it. Definitly handy info for all the ABAPers here.

Thanks,
Krishna Teja Peddada.
Sep 21, 2013 4:54 PM Poorva Salve
Hi Yuvaraj,

Thanks for sharing this valuable information. All these shortcuts come handy while coding.
Special mention of the embedded splitter in ABAP editor. Thanks for sharing.
Sep 22, 2013 12:08 PM Susmitha Susan Thomas
This would be useful. Thanks for sharing.
Sep 23, 2013 7:08 AM vamsi krishna
Hi Yuvraj,

Thank you for sharing!!
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
30

definitely makes my life easier!

A lot easier

Regards
Vamsi
Sep 23, 2013 7:38 AM Prerna Rathore
Nice tips...
Thanks for sharing...:)
Sep 23, 2013 9:14 AM Vijay Hariharan
'Coding mein 2 hi raste hote hai.. ek Short-cut, dusra chota Short-cut'
Thanks for taking the time to list down the short-cuts, this'll help save the most precious
commodity we have.. Time

Thanks & Regards,
Vijay
Sep 23, 2013 9:57 AM Pooja Goel
Thanks for the valuable sharing...
Sep 23, 2013 10:34 AM Peter Inotai
I also like the Formatting -> Enable Auto Bracket option. Very useful for short method call.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
31
It's adds the ')' automatically anytime you type '('.
Peter
Sep 23, 2013 12:06 PM Tamilnesan G Utkarsha Khadke in response to
Hi Utkarsha,

As mentioned by Yuvaraj, Alt+ Space Combination works with all Windows applications. You can try it
out even in your Windows Media Player, My Documents Folder etc.,

If you are using Windows 7 or Higher Version of Operating System,

Click on the Title Bar and simply drag it:-

Drag it to the top - Maximize the whole window (Similar to double click on the Title Bar)
Drag it to the left - Fixes your windows to the left half of your screen.

Similarly for the right side.


Thank you!
Sep 23, 2013 1:44 PM chinni adapa
Hi All,

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
32
Keyboard shortcuts for left - hand people are need in order to have the same functionality as
CTRL+C (to copy), CTRL+X (to cut) and CTRL+V (to paste).

CTRL+INS = CTRL+C
SHIFT+DEL = CTRL+X
SHIFT+INS = CTRL+V

Thanks & Regards,
Chinni
Sep 24, 2013 2:25 PM Santosh kotagi
Very much usefull..

Thanks for sharing Yuvaraj ..
Sep 24, 2013 7:35 PM Andrew Zugay
Thanks Yuvaraj (and also to everyone else who contributed more to this post). With each
advance of the ABAP Editor more features are added and it is very helpful to have someone
list them and show examples.

One question though, is there a way to save Code Templates globally so they are shared
among all developers? Patterns are helpful but not interactive or dynamic like the code
templates.

Regards
Andy
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
33
Sep 25, 2013 7:35 AM Ravi Shankar Rodolfo Felipe Celante in response to
Very Nice
Sep 25, 2013 7:39 AM Yuvaraj S Andrew Zugay in response to
Hello Andy,

Thanks for your comments..

Thats an interesting question.
Well most of the settings that we do in ABAP editor including the Code Templates and
ShortCut Keys can be shared.

All these settings are stored in Local PC as XML files.
In Windows 7, they can be accessed by the following path..

"C:\Users\<username>\AppData\Roaming\SAP\SAP GUI\ABAP Editor"

or simply start->run-> Type %Appdata%-> enter will take you to the userdata folders,
goto SAP->SAPGUI->ABAP Editor Folder from there...

This folder has XML files for all the settings that we make in the SAP GUI Editor options.

To share Code templates, share the file abap_user.xml file..
To share the Shortcut Key configuration, share the file keymap.xml & keymap.xslt..
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
34

In platforms other than Windows 7, there should be a similar folder, probably in a different
location..
Sep 25, 2013 11:44 AM Vishal Singh Yadav
Thanks For Sharing
Sep 26, 2013 8:17 AM Poorva Salve Yuvaraj S in response to
Helpful !!
Sep 26, 2013 8:51 PM Rafael Bacellar Rodolfo Felipe Celante in response to
Thanks for the share!
Sep 27, 2013 1:51 AM Jogeswara Rao Kavala
Hi Yuvraj,
Just come across this document. No wonder it is attracting these many likes and praises.
Very useful knowledge sharing.
Congratulations!

Jogeswara Rao K
Sep 27, 2013 11:16 AM Ajay Bose S
very helpful and useful !!!
Sep 27, 2013 12:09 PM anju e v
Great post Yuvraj..indeed make abaper's life easier.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
35
Sep 27, 2013 12:15 PM Shafique Shaikh
Very useful information, Yuvraj. Thanks for sharing.
Sep 27, 2013 12:16 PM N Sethia
Thanks Yuvraj for updating about shortcut and specially for editor option .
Sep 27, 2013 2:31 PM Delli Kumar
really its very helpful yuvaraj,, appreciated for your inputs.. Thanks,,
Sep 27, 2013 3:01 PM Sushant Tiwarekar
Very Nice Document.

Regards,
Sushant
Sep 27, 2013 3:10 PM Arpit Gupta
Great Post...
Keep up the good work.
Sep 28, 2013 8:22 AM shri vas Yuvaraj S in response to
let me know the exact difference between r3 and ecc6.0 and 4.7? what makes change.
Sep 28, 2013 10:05 AM Kumud Singh Suhas Saha in response to
I am just wondering, had Yuvaraj posted it as a wiki, would it still have appeared on the front
page of SCN!? I think Moshe Naveh would need to chime in here!

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
36


Regards,
Kumud
Sep 29, 2013 6:57 AM Vimal Vidyadharan
Thanks Yuvaraj for this wonderful post. You wouldn't believe that this is also circulating via
email between many ABAPers. In fact I read the email a few minutes before reaching this
post.
Sep 30, 2013 6:46 AM Cobain Kurt
Thanks. This is useful information.
Sep 30, 2013 8:14 AM Alenlee James
Nice one bro...........Very Very useful doc.
Sep 30, 2013 9:12 AM SHAILESH DESAI
Hi Yuvraj,

Thanks for posting good document.

Thanks,
Shailesh
Sep 30, 2013 10:04 AM Riju Thomas
Hi Yuvaraj,
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
37

Very useful information, Thanks for sharing.

Regards,
Riju.
Sep 30, 2013 10:17 AM Farid Hasan
Hi Yuvi,
Thanx for sharing..useful,reduce some typing work
Sep 30, 2013 10:22 AM Ramesh T
Hi Yuvaraj,

This will covers all shortcuts.....

Description Shift Ctrl Alt Key
Move left by one char Left
Select char left from
cursor
Shift Left
Select char left from
cursor in Block Mode
Shift Alt Left
Move right by one
char
Right
Select char right from
cursor
Shift Right
Select char right from
cursor in Block Mode
Shift Alt Right
Move cursor one line
down
Down
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
38
Select text from
current position until
same position in
previous line
Shift Down
Select text from
current position until
same position in
previous line in Block
Mode
Shift Alt Down
Move cursor one line
up
Up
Select text from
current position until
same position in next
line
Shift Up
Select text from
current position until
same position in next
line in Block Mode
Shift Alt Up
Move cursor to the
beginning of the line
Home
Select text from
cursor position until
beginning of the line
Shift Home
Select text from
cursor position until
beginning of the line
in Block Mode
Shift Alt Home
Move cursor to the
end of the line
End
Select text form
current position until
end of the line
Shift End
Select text form
current position until
end of the line in
Block Mode
Shift Alt End
Scroll document one
page down
PageDown
Select from current
position until one
page down
Shift PageDown
Select from current
position until one
Shift Alt PageDown
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
39
page down in Block
Mode
Scroll document one
page up
PageUp
Select from current
position until one
page up
Shift PageUp
Select from current
position until one
page up in Block
Mode
Shift Alt PageUp
Move cursor to the
first line of current
screen
Ctrl PageUp
Move cursor to the
last line of current
screen
Ctrl PageDown
Move cursor to the
first line of current
screen
Shift Ctrl PageUp
Move cursor to the
last line of current
screen
Shift Ctrl PageDown
Move cursor to the
first line of current
screen
Shift Ctrl Alt PageUp
Move cursor to the
last line of current
screen
Shift Ctrl Alt PageDown
Move cursor to the
beginning of the
document
Ctrl Home
Select from current
position until
beginning of the
document
Shift Ctrl Home
Select from current
position until
beginning of the
document in Block
Mode
Shift Ctrl Alt Home
Move cursor to the
end of the document
Ctrl End
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
40
Select from current
position until end of
the document
Shift Ctrl End
Select from current
position until end
of the document in
Block Mode
Shift Ctrl Alt End
Move cursor one
word left
Ctrl Left
Select word left Shift Ctrl Left
Select word left in
Block Mode
Shift Ctrl Alt Left
Move cursor one
word right
Ctrl Right
Select word right Shift Ctrl Right
Select word right Shift Ctrl Alt Right
Move cursor to next
paragraph
Ctrl ]
Select text from
cursor to start of next
paragraph
Shift Ctrl ]
Select text from
cursor to start of next
paragraph in Block
Mode
Shift Ctrl Alt ]
Move cursor to
previous paragraph
Ctrl [
Select text from
cursor to start of
previous paragraph
Shift Ctrl [
Select text from
cursor to start of
previous paragraph
in Block Mode
Shift Ctrl Alt [
Scroll document one
line down
Ctrl Down
Scroll document one
line up
Ctrl Up
Show the settings
dialog
Shift Ctrl O
Call Find dialog Ctrl F
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
41
Repeat last search
backward from the
current position
Shift Ctrl G
Repeat last search
from current position
Ctrl G
Call replace dialog Ctrl H
Forward incremental
search in text
Ctrl I
Backward
incremental search in
text
Shift Ctrl I
Toggle unnamed
bookmark
Ctrl Alt M
Toggle bookmark 0 Ctrl Alt 0
Toggle bookmark 1 Ctrl Alt 1
Toggle bookmark 2 Ctrl Alt 2
Toggle bookmark 3 Ctrl Alt 3
Toggle bookmark 4 Ctrl Alt 4
Toggle bookmark 5 Ctrl Alt 5
Toggle bookmark 6 Ctrl Alt 6
Toggle bookmark 7 Ctrl Alt 7
Toggle bookmark 8 Ctrl Alt 8
Toggle bookmark 9 Ctrl Alt 9
Go to the bookmark 0 Ctrl 0
Go to the bookmark 1 Ctrl 1
Go to the bookmark 2 Ctrl 2
Go to the bookmark 3 Ctrl 3
Go to the bookmark 4 Ctrl 4
Go to the bookmark 5 Ctrl 5
Go to the bookmark 6 Ctrl 6
Go to the bookmark 7 Ctrl 7
Go to the bookmark 8 Ctrl 8
Go to the bookmark 9 Ctrl 9
Go to the specified
line
Ctrl O
Go to the next
bookmark
Ctrl M
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
42
Go to the previous
bookmark
Shift Ctrl M
Delete char right from
cursor
Delete
Delete char left from
cursor (Backspace)
BackSpace
Shift BackSpace
Delete word right of
cursor
Ctrl Delete
Delete word left from
cursor
Ctrl BackSpace
Insert tab or indent
selection
Tab
Untabify selection Shift Tab
Copy selection Ctrl C
Ctrl Insert
Cut selection Ctrl X
Shift Delete
Paste selection Ctrl V
Shift Insert
Extended paste
selection
Shift Ctrl V
Append to Clipboard
current selection
Shift Ctrl Insert
Redo operation Ctrl Y
Undo operation Ctrl Z
Alt BackSpace
Comment selected
lines or current one
Ctrl <
Ctrl <
Uncomment selected
lines or current one
Ctrl >
Shift Ctrl <
Cut current line Shift Ctrl X
Copy current line Shift Ctrl T
Delete current line Shift Ctrl L
Transpose line with
previous
Ctrl Alt T
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
43
Duplicate current line Ctrl D
Move selected lines
up
Ctrl Alt Up
Move selected lines
down
Ctrl Alt Down
Select whole
document
Ctrl A
Convert selection to
the lower case
Ctrl L
Convert selection to
the upper case
Ctrl U
Capitalize selection Ctrl J
Convert selection to
sentence style
Ctrl T
Swap case of text in
current selection
Ctrl K
Switch overwrite
mode (INS)
Insert
Auto complete word Ctrl Space
Show Quick Info for
current word
Shift Ctrl Space
Expand typed
keyword from
template
Ctrl Enter
Display Color Auto
Complete list
Shift Ctrl C
Provide help for
selected or current
word/text
F1
Magnify text size Ctrl Alt Num +
Reduce text size Ctrl Alt Num -
Restore text size to
normal
Ctrl Alt Num /
Collapse all
structures in
document
Shift Ctrl Num -
Open all structures in
document
Shift Ctrl Num +
Expand or Collapse
current outlining
node.
Ctrl Num *
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
44
Expand current
outlining node.
Ctrl Num +
Collapse current
outlining node.
Ctrl Num -
Call Print dialog Ctrl P
Immediately prints
document
Shift Ctrl P
Call File preview
dialog
Ctrl Alt P
Call dialog to choose
another file name for
saving
Shift Ctrl S
Sep 30, 2013 10:38 AM Ravi Shankar
Nice one Ramesh...
Sep 30, 2013 10:41 AM Yuvaraj S Ramesh T in response to
Hi Ramesh,

Like I have mentioned, all the shortcuts can be seen and programmed from the 'Keyboard'
menu in Editor options

Thanks for collecting and adding them separately though...
Sep 30, 2013 11:55 AM Ramesh T Ravi Shankar in response to
Thank You Ravi
Sep 30, 2013 8:35 PM Uday Kumar Kanike
Nice blog. very helpful..!
Oct 1, 2013 11:16 AM Ivan Marconato
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
45
Hi,
useful information.

Thanks for sharing

Ivan
Oct 1, 2013 11:34 AM Abyson Joseph
Hi Yuvaraj,

Thanks for sharing the document. Even I came know about .abap only after reading this
post..

Regards,
Abyson Joseph
Oct 1, 2013 1:14 PM Ajay Bose S
Hi Yuvaraj,

Thought of sharing few points in your blog.

In the editor we also have the option of surronding existing line(s) of code by statements
such as if...else, do...endo, while...endwhile etc.

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
46
We can select the line(s) of code and then right click the mouse and then select
Format->Surround by Template

You will see lot of options as I had mentioned like if...else, do...endo, while...endwhile etc.
Once you select the command you will see that the lines you have selected have been
surrounded by the selected command.

This becomes useful in case where you have several lines of code already written but only
want to enable it for a particular condition or something. However you can cut the selected
lines of code and paste it into a notepad and then manually write your if or do condition and
then paste your code back. But the shortcut which I just discussed will make sure that there
are no incorrect nestings of any if... else command or do..enddo command inserted this
way :-)

Similary there a re lot of options in the Format Menu available in mouse right click.

Another point is regarding a programming shortcut rather a keyboard shortcut :-)
Neverthless it is very useful in many scenarios.

Suppose you have several radiobuttons in your selection screen and yo need to check which
of them has been selected by the user and write logic accordingly. A conventional way of
acheiving this is by way of using if else statement like below:

If p_rad1 EQ 'X'.

<do something>

ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
47
elseif p_rad2 EQ 'X'.

<do something>

elseif p_rad3 EQ 'X'.

<do something>

elseif p_rad4 EQ 'X'.

<do something>

endif.

Now here comes the shortcut,

Instead of writing 'N' number of if else conditions you can write the code like:

CASE 'X'.
WHEN p_rad1.
<do something>
WHEN p_rad2.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
48
<do something>
WHEN p_rad3.
<do something>
WHEN p_rad4.
<do something>
WHEN OTHERS.
ENDCASE.

Most of you mite be aware of this. But those of you who are not aware of this, I am sharing it
for you.

Yuvaraj, I hope it is some value addition to this wonderful blog of yours !!!


Thanks,
Ajay Bose
Oct 1, 2013 1:35 PM Yuvaraj S Ajay Bose S in response to
Thanks for ur contribution,

Yes, Surround by template will be useful at times.

And Case 'X' statement is cool indeed. I wouldn't call it a shortcut, but it is the right way to
code for a radio button. Thanks for sharing..
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
49
Oct 2, 2013 6:28 AM Bhuvnesh Kumar Gupta
excellent......indeed very helpful...........

thanks for sharing.
Oct 2, 2013 7:44 PM Prabhu Koneru
Thanks for starting the thread.
Oct 3, 2013 9:49 AM Mriganka Kolay
excellent......
Oct 3, 2013 10:01 AM Dhruvin Mehta
Thanks yuvraj for providing this document.. Very helpfull esp. when u r ina hurry for a
development....
Oct 3, 2013 12:25 PM Preeti Singh
Thanks for the tips . Actully very useful must say !!
Oct 4, 2013 8:06 AM Ramesh Babu Srikakollu
Good Valuable information
Oct 4, 2013 9:31 AM Shivam Maurya
Very handy blog.
Oct 4, 2013 10:55 AM Ansumesh Kumar Samal
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
50
Nice Content . Although I practice this to make my coding life easier..and I also forgot
many more short-cuts..but..reading your post is basically revision of my leanings...thanks
Oct 4, 2013 7:21 PM Susanna Kohlmyer
These are great! A lot of them were new to me. Thank you for sharing!
Oct 6, 2013 1:25 PM joseph davis
Thanks for sharing
Oct 7, 2013 7:34 AM gopi krishna macha
Thanks a lot for sharing..

ctrl+U = Selected text in Upper case.

ctrl+T = Text start letter in capital remaining small.
Oct 7, 2013 8:33 AM jeetendra singh
Hey Yuvraj,

Great info.
Thanks for sharing
Oct 7, 2013 2:25 PM Mohammed Jaffer
Thanks for sharing Yuvraj. This will be really useful
Oct 9, 2013 8:45 AM Modadugu Hemanth Kumar
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
51
good article!!
Oct 10, 2013 8:05 PM abhishek tevatia
Nice work brother..
Oct 11, 2013 8:25 PM Amitesh Prashar
Ctrl + / is the most helpful.
Now I have customized for Selection Comment (Ctrl + Shift + ,) and Selection Uncomment
(Ctrl + Shift + .) and that's is too handy.

Thank you for sharing.

Regards,
Amitesh
Oct 14, 2013 6:13 AM abhijeet kankani
ALT + selection was new to me.

Thanks for sharing nice information.
Oct 14, 2013 3:16 PM Raul Natu
cool
Oct 15, 2013 1:15 PM Govendran Gopi
Very useful Info.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
52
Thanks for sharing.
Oct 15, 2013 1:22 PM Amaranatha Madhaba
Nice post, interesting and very helpful. Thank you so much for posting.
Oct 16, 2013 9:21 AM Srinivas Katreddy Yuvaraj S in response to
Thanks for sharing your knowledge....

Regards,
Srinivas Katreddy
Oct 17, 2013 8:11 AM ramoji paleti
shift+F10 will show the context menu from any screen
Oct 17, 2013 11:12 AM Rekha Nandigama
Thanks for sharing....
Oct 19, 2013 2:46 PM Murillo Casa Grande
Very nice! Thanks for sharing!
Oct 20, 2013 3:57 AM R Sampath Kumar
yuvaraj,
nice info...very useful....

Regards,
Sampath
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
53
Oct 20, 2013 5:10 AM Srinu S
Nice effort. Thanks for sharing.

Srinu.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
54
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
55

Regards,
Satbir.
Oct 21, 2013 9:36 AM Satbirsingh Hundal
very informative. Thanks for sharing ...

Regards,
Satbir.
Oct 21, 2013 3:41 PM Syambabu Allu
Interesting.
Oct 22, 2013 6:33 AM Siva kumar Devana
very good & most useful document.

Regards.
Siva kumar.
Oct 22, 2013 1:52 PM Chundru Ravindra
Hi Yuvaraj S,

Very useful shortcuts. Till now i knew very few of them. I will try remaining.

Thanks a lot.
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
56
Ravindra.
Oct 23, 2013 10:20 AM shiva kumar
Thanks alot man. I really loved it .. U made my Job easy
Oct 23, 2013 6:24 PM Maheshkumar gattu
Thanks for this document.
i* is not working for me may i know the reason.
Oct 28, 2013 6:09 AM Raman K Chowthary
Really helpful one. Thanks for sharing yuvaraj
Oct 28, 2013 1:10 PM Mohammed Zaman
Thanks for sharing. Very helpful indeed.
Oct 29, 2013 9:22 AM Jesse Owens
Hi Yuvraj,

Cool Info.
Alt + Selection, Code Templates, Variable name suggestion are very useful

Best Regards
Jesse
Oct 29, 2013 2:52 PM Daniel Baumann
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:00
57
Hi Yurajav,

many thanks for your useful advice.

Best regards,
Daniel
Nov 5, 2013 12:26 PM Rashmith Tula
Hi Yuvaraj S,

I am grateful to you for sharing this. It'll be really very helpful for freshers like me. Keep
posting such stuff.

Regards,
Rashmith.

Das könnte Ihnen auch gefallen