一、截取右边N位的字符串
DATA matnr TYPE string.
matnr = 1234567890.
SHIFT matnr BY strlen( matnr ) - 5 PLACES LEFT.
二、从第N+1位开始,截取后面所有字符串,但会覆盖此字符串。
DATA lv_str TYPE string VALUE ‘123456789ABCDEFGHI’.
SHIFT lv_str by 18 PLACES LEFT.
WRITE lv_str.
三、把字符串中在str以前的字符都去掉
SHIFT {c} UP TO {str} {mode}.
四、字符串c中前的(LEFT)或者后的(RIGHT)的字符str都去掉
SHIFT {c} LEFT DELETING LEADING {str}.
SHIFT {c} RIGHT DELETING TRAILING {str}.