What does it do? This statement shifts the content of a variable dobj >. In places>>, the number of places to be shifted can be specified and in direction>>, the direction of the shift. In deleting>>, the characters to be deleted from the data object by the shift can be specified. If no additions are specified, the content is shifted to the left by one place. By default, free places created by the shift are filled with blanks or hexadecimal 0 for data objects of fixed length, depending on the processing method. Data objects of type string> or xstring> are truncated by the number of shifted places when shifted to the left and lengthened by the number of shifted places when shifted to the right. In character string processing, the trailing blanks are respected for data objects dobj> of fixed length.
Latest notes: To shift a string in an operand position, shift functions> that cover part of the functions of the statement SHIFT > can be used. NON_V5_HINTS ABAP_HINT_END
ABAP_EXAMPLE_VX5 The shortest form of the statement SHIFT>. The content of str > is moved one place to the left. ABEXA 00665 ABAP_EXAMPLE_END • IN BYTE MODE SHIFT • IN CHARACTER MODE SHIFT
ABAP Addition
What does it do? The optional addition IN ${CHARACTER$|BYTE$} MODE> determines whether character string or byte string processing> is performed. If the addition is not specified, character string processing is performed. Depending on the processing method, dobj>, substring> > and mask>> must be character-like or byte-like.
ABAP_EXAMPLE_VX5 Shifting a byte string one byte to the left. ABEXA 00666 ABAP_EXAMPLE_END