Wednesday, 12 March 2014

ABAP Shot Cut Commands Part 2




Command Description
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
CTRL+N New session
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, 
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,
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.
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.

No comments:

Post a Comment