ABAP Keyword Documentation → ABAP − Short Reference
SHIFT - Short Reference
Other versions: 7.31 | 7.40 | 7.54
Syntax
SHIFT dobj [ { [ {BY num PLACES} | {UP TO substring} ]
[LEFT|RIGHT] [CIRCULAR] }
| { {LEFT DELETING LEADING}
| {RIGHT DELETING TRAILING} mask} ]
[IN {CHARACTER|BYTE} MODE].
Effect
Moves characters or bytes in a character- or byte string dobj
.
Additions
-
BY num PLACES
Moves the objects bynum
characters or bytes. -
UP TO substring
Moves the objects to the substring specified insubstring
. -
[LEFT|RIGHT] [CIRCULAR]
Moves the objects to the left or right.CIRCULAR
inserts characters that are pushed out of the screen on the other side. -
{LEFT DELETING LEADING}|{RIGHT DELETING TRAILING} pattern
Moves by one position to the left or the right until the content of the first or last position indobj
is displayed inpattern
. -
IN {CHARACTER|BYTE} MODE
Defines the byte or character string processing.