Get Example source ABAP code based on a different SAP table
• LEFT SHIFT • RIGHT SHIFT • CIRCULAR SHIFT
SHIFT>, direction> Short Reference >
ABAP_SYNTAX ... $[LEFT$|RIGHT$] $[CIRCULAR$] ...>
ABAP Addition 1 ... LEFT$|RIGHT> 2 ... CIRCULAR>
ABAP Addition
What does it do? The shift direction is defined using LEFT> or RIGHT>. If neither of the additions is specified, LEFT> is used implicitly. If the data object dobj> is a string and the addition CIRCULAR > is not specified, it is truncated when shifted to the left by the places shifted and extended accordingly when shifted to the right.
ABAP_EXAMPLE_VX5 The content of text field text> is moved one place to the right, which means that the digit 9> is lost. The data type string> would extend the string by one space. ABEXA 00669 ABAP_EXAMPLE_END
ABAP Addition
What does it do? Using the addition CIRCULAR>, the content shifted from the data object to the left or to the right, is inserted again in the places that become available on the opposite side. If the addition CIRCULAR> is specified, data objects of the type string> or xstring> are not truncated or extended. Instead, they are handled like data objects of fixed length.
ABAP_EXAMPLE_VX5 This example is a variant of the second example under places>>. Using the addition CIRCULAR > makes the result you know I know>. ABEXA 00670 ABAP_EXAMPLE_END