ABAP Keyword Documentation → ABAP - Quick Reference
SHIFT - Quick 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 string or byte string dobj
.
Additions
-
BY num PLACES
Moves the characters or bytes bynum
. -
UP TO substring
Moves the characters or bytes up to the substring specified insubstring
. -
[LEFT|RIGHT] [CIRCULAR]
Moves the characters or bytes to the left or right.CIRCULAR
inserts characters pushed out of the screen on the other side. -
{LEFT DELETING LEADING}|{RIGHT DELETING TRAILING} mask
Moves the characters or bytes 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
Specifies character string or byte string processing.