Show TOC Start of Content Area

Procedure documentationEditing Source Code (Front-End Editor)  Locate the document in its SAP Library structure

Selecting Text

Using the mouse

To select

Do the following

A block of text

Drag the cursor over the block.

A line

Move the cursor to the left of the line until it changes to a right-pointing arrow, and then click.

A set of lines

Move the cursor to the left of the first line until it changes to a right-pointing arrow, and then drag to the end of the selection.

The entire source code

Move the cursor to the left of a line until it changes to a right-pointing arrow, and then hold down Ctrl and click.

Using the keyboard

To select

Press

The entire source code

Ctrl + A

One line up

Shift + Up Arrow

One line down

Shift + Down Arrow

One character to the left of the cursor

Shift + Left Arrow

One character to the right of the cursor

Shift + Right Arrow

One screen up from the cursor position

Shift + Page Up

One screen down from the cursor position

Shift + Page Down

To the beginning of the current line

Shift + Home

To the end of the current line

Shift + End

To the beginning of the current paragraph

Shift + Ctrl+ Up Arrow

To the end of the current paragraph

Shift + Ctrl + Down Arrow

To the beginning of the current word

Shift + Ctrl + Left Arrow

To the end of the current word

Shift + Ctrl + Right Arrow

To the beginning of the visible area

Shift + Ctrl + Page Up

To the end of the visible area

Shift + Ctrl + Page Down

To the beginning of the entire source code

Shift + Ctrl + Home

To the end of the entire source code

Shift + Ctrl + End

Editing Text

Function

Procedure

Cut

Select the relevant text.
Choose Cut from the context menu (right mouse button), or choose
Ctrl + X. The selected text is placed in the buffer.

Copy

Select the relevant text.
Choose Copy from the context menu (right-hand mouse button), or choose
Ctrl + C. The selected text is placed in the buffer.

Paste

Position the cursor where you want to insert the text.
Choose Paste from the context menu (right-hand mouse button), or choose
Ctrl + V. The selected text is placed in the buffer.

Move text using drag and drop (within the same editor)

Select the relevant text.
Press and hold the left-hand mouse button and drag the selected text to where you want to place it.
Release the mouse button.
The selected text is moved to the new position.

Copy text using drag and drop (within the same editor)

Select the relevant text.
Hold down
Ctrl + the left mouse button and drag the selected text to where you want to place it.
Release the mouse button.
The selected text is copied to the new position.

Comment out source code

Select the relevant code.
From the context menu, choose Comment, or press
Ctrl + <.

Remove comments from source code

Select the relevant code.
From the context menu, choose Uncomment or press
Ctrl + >.

Inserting Code From Other Programs Using Drag and Drop

To insert code from one ABAP program into another:

...

       1.      Open both programs (each in its own session).

       2.      Select the code that you want to copy.

       3.      Use drag and drop to place it in the other editor.

The source code will either be moved or copied. If you hold down the Ctrl key while dragging it, or if you have originally opened the source program in display mode, it will be copied.

End of Content Area