Beruflich Dokumente
Kultur Dokumente
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.
Eventhough the SAP IDE does not support some of the features which more prominent IDEs 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 havent then the stage is yours..
Shortcut What it does
Duplicate any line.
Ctrl + D
eg. i_vbap TYPE STANDARD TABLE OF vbap + Ctrl-D = i_vbap TYPE STANDARD TABLE OF vbap
i_vbap TYPE STANDARD TABLE OF vbap
Jump to the command field where we enter t-codes. This comes really handy and saves a jump from keyboard t
Ctrl + /
keyboard just to click on the box.
Convert to Proper case where the first letter of every word becomes a capital letter. This is pretty useful when wri
Ctrl + J 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 & Incremental search. This is a little improved Find (Ctrl + F) function which searches as soon as you type. Useful f
Ctrl + Shift + I to search backwards.
This is useful in situation where you need to select only the field names of a particular table.
eg.
caufvaufnr,
caufvwerks,
caufvobjnr,
caufvplnbez,
caufvgamng,
caufvgasmg,
caufvgmein,
Alt + Selection caufvplnnr,
caufvplnal,
caufvdispo,
caufvfevor,
caufvcy_seqnr ,
caufvaufpl,
caufvgstrp,
caufvgltrp,
caufvgstrs,
caufvgltrs,
caufvgstri,
caufvgltri,
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,
plnal,
dispo,
fevor,
cy_seqnr ,
aufpl,
gstrp,
gltrp,
gstrs,
gltrs,
gstri,
gltri,
Tab & Shift tab Increase and Decrease Intend
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.
INCLUDE ZTEST_ABAP_HTTP_CLIENT_C01.
INCLUDE ZTEST_ABAP_HTTP_CLIENT_TOP.
Ctrl+Shift+L/X Deletes the whole line
Ctrl + Shift + Num8 & Move the lines up and down in the editor window while the cursor stays in the same place.
Ctrl + Shift + Num2 This is similar to Page Up & Page Down but instead, it does not scroll an entire page but only one line.
Eg. After typing CREATE, Ctrl + Spacebar will show you the list to choose DATA or OBJECT..
Ctrl + Spacebar
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.
When you check this box, it will suggest even for variable names like
Another cool way to extend its core editor functionality for customizations could be by providing
APIs 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.
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..
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..
+ =
Similarly you can set shortcuts for Cut Append, Navigating to Bookmarks, Formatting Selected text
etc