ABAP Editors

Shortcuts

  • Ctrl + D:Copy one line downward
  • Ctrl + /:Go to Command Filed at top left corner
  • Ctrl + J:Convert to Proper case where the first letter of every word becomes a capital letter. This is pretty useful when writing comments
  • Ctrl + T:Capitalize the first word of one sentence
  • Ctrl + I&Ctrl + Shift + I:Incremental search. This is a little improved 'Find' (Ctrl + F) function which searches as soon as you type.
  • Ctrl + K:Toggle between Upper case and Lower Case
  • Ctrl + L/U:All text lowercase/uppercase
  • Ctrl + N:Open a new Window in SAP
  • Shift + F1:Execute Pretty Printer
  • Ctrl + F2:Check Syntax
  • Ctrl + F3:Activate Object
  • Ctrl+G:Find next )
  • Ctrl+O:Go to line
  • Ctrl+H:Find and Replace
  • Ctrl+Shift+S:Save your program in Desktop in.abap format.
  • Ctrl+Shift+L/X:Deletes whole line
  • Ctrl+Shift+V:Gives All Paste options
  • Ctrl+Alt+T:Swaps line with Upper case
  • Tab & Shift tab:Increase and Decrease Intend
  • Ctrl + Space:Display options to complete a command
  • Ctrl + ] & Ctrl + [:Jump to previous or next paragraph.,Jump to previous or next paragraph.A paragraph is created by leaving an empty line between statements.

Code Templates

​ this can be set at the bottom right corner of the abap editor

  • *--:--------------------------------------------------------------------

  • case:

    CASE |.
    	WHEN .
    	WHEN .
    	WHEN OTHERS.
    ENDCASE.
    
  • define:

    DEFINE |.
    %SurroundedText%"default space
    END-OF-DEFINITION.
    
  • do:

    DO | TIMES.
    %SurroundedText%
    ENDDO.
    
  • if:

    IF |.
    %SurroundedText%
    ENDIF.
    
  • ife:

    IF |.
    %SurroundedText%
    ELSE.
    
    ENDIF
    
  • loop:

    LOOP AT |.
    %SurroundedText%
    ENDLOOP.
    
  • region:

    "$. Region %Region Name%
    %SurroundedText%
    "$. Endregion %Region Name%
    
  • try:

    TRY |.
    %SurroundedText%
    CATCH .
    
    ENDTRY.
    
  • while:

    WHILE |.
    %SurroundedText%
    ENDWHILE.
    
  • def1:

    %type%:
        BEGIN OF %name%,
            |
        END OF %name%%dot or comma%
    
  • def2:

    BEGIN OF %name%,
        |
    END OF %name%%dot or comma%
    
原文地址:https://www.cnblogs.com/aurora-cj/p/10969489.html