Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPSHIFT_DIRECTION - SHIFT DIRECTION

ABAPSHIFT_DIRECTION - SHIFT DIRECTION

PERFORM Short Reference   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

SHIFT, direction

Short Reference



... $[LEFT$|RIGHT$] $[CIRCULAR$] ...

Additions

1. ... LEFT$|RIGHT

2. ... CIRCULAR

Addition 1

... LEFT$|RIGHT

Effect

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.

Example

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.

Addition 2

... CIRCULAR

Effect

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.

This example is a variant of the second example under places. Using the addition CIRCULAR makes the result "you know I know".






Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2103 Date: 20230207 Time: 212648     sap01-206 ( 40 ms )