Upload
vikram-bigamudre
View
30
Download
9
Embed Size (px)
DESCRIPTION
shortcut
Citation preview
Generated by Jive on 2013-11-06+01:001
ABAP Development: Shortcuts that can makean 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 someaspects are so awesome and more comfortable for a programmer than any other languagecan 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 prominentIDE's like Eclipse etc have, I find it so comfortable to code in ABAP Editor compared toothers. The reason is because of the below shortcuts and customizations available with it. Iam 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:002
Ctrl + / Jump to the "command field" where we entert-codes. This comes really handy and savesa jump from keyboard to mouse and back tokeyboard just to click on the box.
Ctrl + J Convert to Proper case where the first letterof every word becomes a capital letter. Thisis 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 searchesas soon as you type. Useful for impatientpeople. Add shift to search backwards.
Ctrl + K Toggle between Upper case and LowerCase.
Alt + Selection This is useful in situation where you needto select only the field names of a particulartable.
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:003
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 fieldnames by pressing Alt key and get theclipboard 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:004
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 .abapformat. I came know about .abap only afterlearning this short cut.
Ctrl + Selection When you do a selection with **** + -> or<- hold on to Ctrl to jump every word in thatdirection.
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:005
A paragraph is created by leaving an empty linebetween statements.
Ctrl + Shift + Num8 &
Ctrl + Shift + Num2
Move the lines up and down in the editorwindow while the cursor stays in the sameplace.
This is similar to Page Up & Page Down butinstead, it does not scroll an entire page butonly one line.
Ctrl + Spacebar Display options to complete a command.
Eg. After typing CREATE, Ctrl + Spacebarwill show you the list to choose DATA orOBJECT..
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:006
like,
Code Templates
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:007
Here I use a template for the text. This could be a text that is used for marking modificationsor 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:008
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 otherfuntionalities which we use more often. Especially the code maintenance and supportactivities 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:009
Another cool way to extend its core editor functionality for customizations could be byproviding API's even for the application programmers to code and customize the editorfeatures. It will also add to the creativity aspect on SAP side since any third programmercould 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 performeditor 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 thesubject 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 editoroptions.
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:0010
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:0011
There are also cool actions which are not assigned to any shortcuts, Copy Append is onesuch 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:0012
+ Ctrl + Alt + C + =
Similarly you can set shortcuts for Cut Append, Navigating to Bookmarks, FormattingSelected 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 Ididn't know yet.
And since I'm not working as much in the new Eclipse editor as I'd like to, these will stillcome 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:0013
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 platformsat the same time like Netweaver JAVA, mobile and ABAP. As far as application developersare 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 Editorwindows & moving them over the screen. This comes in handy when you are comparingwhat 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:0014
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 embeddedsplitter, 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 shortcuts,
• 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:0015
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:0016
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:0017
Thanks for sharing. Every time someone shares something like this I pick up one or twomore tricks.
I do have one correction, though. Ctrl + J converts a selection to proper case, not camelcase.
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 mentionany 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:0018
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:0019
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 someonementions 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:0020
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:0021
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:0022
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. Thisonly works once the IDE has proposed a keyword. As an exmple, type 'in' , the IDE willpropose '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:0023
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:0024
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:0025
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:0026
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 topropose.
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:0027
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 tablename .
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:0028
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:0029
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:0030
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:0031
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:0032
Keyboard shortcuts for left - hand people are need in order to have the same functionality asCTRL+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 eachadvance of the ABAP Editor more features are added and it is very helpful to have someonelist them and show examples.
One question though, is there a way to save Code Templates globally so they are sharedamong all developers? Patterns are helpful but not interactive or dynamic like the codetemplates.
Regards
Andy
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0033
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 andShortCut 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:0034
In platforms other than Windows 7, there should be a similar folder, probably in a differentlocation..
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:0035
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 frontpage 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:0036
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 viaemail between many ABAPers. In fact I read the email a few minutes before reaching thispost.
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:0037
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 fromcursor
Shift Left
Select char left fromcursor in Block Mode
Shift Alt Left
Move right by onechar
Right
Select char right fromcursor
Shift Right
Select char right fromcursor in Block Mode
Shift Alt Right
Move cursor one linedown
Down
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0038
Select text fromcurrent position untilsame position inprevious line
Shift Down
Select text fromcurrent position untilsame position inprevious line in BlockMode
Shift Alt Down
Move cursor one lineup
Up
Select text fromcurrent position untilsame position in nextline
Shift Up
Select text fromcurrent position untilsame position in nextline in Block Mode
Shift Alt Up
Move cursor to thebeginning of the line
Home
Select text fromcursor position untilbeginning of the line
Shift Home
Select text fromcursor position untilbeginning of the linein Block Mode
Shift Alt Home
Move cursor to theend of the line
End
Select text formcurrent position untilend of the line
Shift End
Select text formcurrent position untilend of the line inBlock Mode
Shift Alt End
Scroll document onepage down
PageDown
Select from currentposition until onepage down
Shift PageDown
Select from currentposition until one
Shift Alt PageDown
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0039
page down in BlockMode
Scroll document onepage up
PageUp
Select from currentposition until onepage up
Shift PageUp
Select from currentposition until onepage up in BlockMode
Shift Alt PageUp
Move cursor to thefirst line of currentscreen
Ctrl PageUp
Move cursor to thelast line of currentscreen
Ctrl PageDown
Move cursor to thefirst line of currentscreen
Shift Ctrl PageUp
Move cursor to thelast line of currentscreen
Shift Ctrl PageDown
Move cursor to thefirst line of currentscreen
Shift Ctrl Alt PageUp
Move cursor to thelast line of currentscreen
Shift Ctrl Alt PageDown
Move cursor to thebeginning of thedocument
Ctrl Home
Select from currentposition untilbeginning of thedocument
Shift Ctrl Home
Select from currentposition untilbeginning of thedocument in BlockMode
Shift Ctrl Alt Home
Move cursor to theend of the document
Ctrl End
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0040
Select from currentposition until end ofthe document
Shift Ctrl End
Select from currentposition until endof the document inBlock Mode
Shift Ctrl Alt End
Move cursor oneword left
Ctrl Left
Select word left Shift Ctrl Left
Select word left inBlock Mode
Shift Ctrl Alt Left
Move cursor oneword right
Ctrl Right
Select word right Shift Ctrl Right
Select word right Shift Ctrl Alt Right
Move cursor to nextparagraph
Ctrl ]
Select text fromcursor to start of nextparagraph
Shift Ctrl ]
Select text fromcursor to start of nextparagraph in BlockMode
Shift Ctrl Alt ]
Move cursor toprevious paragraph
Ctrl [
Select text fromcursor to start ofprevious paragraph
Shift Ctrl [
Select text fromcursor to start ofprevious paragraphin Block Mode
Shift Ctrl Alt [
Scroll document oneline down
Ctrl Down
Scroll document oneline up
Ctrl Up
Show the settingsdialog
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:0041
Repeat last searchbackward from thecurrent position
Shift Ctrl G
Repeat last searchfrom current position
Ctrl G
Call replace dialog Ctrl H
Forward incrementalsearch in text
Ctrl I
Backwardincremental search intext
Shift Ctrl I
Toggle unnamedbookmark
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 specifiedline
Ctrl O
Go to the nextbookmark
Ctrl M
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0042
Go to the previousbookmark
Shift Ctrl M
Delete char right fromcursor
Delete
Delete char left fromcursor (Backspace)
BackSpace
Shift BackSpace
Delete word right ofcursor
Ctrl Delete
Delete word left fromcursor
Ctrl BackSpace
Insert tab or indentselection
Tab
Untabify selection Shift Tab
Copy selection Ctrl C
Ctrl Insert
Cut selection Ctrl X
Shift Delete
Paste selection Ctrl V
Shift Insert
Extended pasteselection
Shift Ctrl V
Append to Clipboardcurrent selection
Shift Ctrl Insert
Redo operation Ctrl Y
Undo operation Ctrl Z
Alt BackSpace
Comment selectedlines or current one
Ctrl <
Ctrl <
Uncomment selectedlines 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 withprevious
Ctrl Alt T
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0043
Duplicate current line Ctrl D
Move selected linesup
Ctrl Alt Up
Move selected linesdown
Ctrl Alt Down
Select wholedocument
Ctrl A
Convert selection tothe lower case
Ctrl L
Convert selection tothe upper case
Ctrl U
Capitalize selection Ctrl J
Convert selection tosentence style
Ctrl T
Swap case of text incurrent selection
Ctrl K
Switch overwritemode (INS)
Insert
Auto complete word Ctrl Space
Show Quick Info forcurrent word
Shift Ctrl Space
Expand typedkeyword fromtemplate
Ctrl Enter
Display Color AutoComplete list
Shift Ctrl C
Provide help forselected or currentword/text
F1
Magnify text size Ctrl Alt Num +
Reduce text size Ctrl Alt Num -
Restore text size tonormal
Ctrl Alt Num /
Collapse allstructures indocument
Shift Ctrl Num -
Open all structures indocument
Shift Ctrl Num +
Expand or Collapsecurrent outliningnode.
Ctrl Num *
ABAP Development: Shortcuts that can make an ABAP'er life easier
Generated by Jive on 2013-11-06+01:0044
Expand currentoutlining node.
Ctrl Num +
Collapse currentoutlining node.
Ctrl Num -
Call Print dialog Ctrl P
Immediately printsdocument
Shift Ctrl P
Call File previewdialog
Ctrl Alt P
Call dialog to chooseanother file name forsaving
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:0045
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 statementssuch 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:0046
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 beensurrounded by the selected command.
This becomes useful in case where you have several lines of code already written but onlywant to enable it for a particular condition or something. However you can cut the selectedlines of code and paste it into a notepad and then manually write your if or do condition andthen paste your code back. But the shortcut which I just discussed will make sure that thereare no incorrect nestings of any if... else command or do..enddo command inserted thisway :-)
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 whichof them has been selected by the user and write logic accordingly. A conventional way ofacheiving 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:0047
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:0048
<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 itfor 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 tocode 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:0049
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:0050
Nice Content . Although I practice this to make my coding life easier..and I also forgotmany 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:0051
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:0052
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:0053
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:0054
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:0055
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:0056
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:0057
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. Keepposting such stuff.
Regards,
Rashmith.