Documentation View

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



PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

SHIFT, deleting

Short Reference

    $| ${RIGHT DELETING TRAILING$} $} mask ...


If these additions are used, the statement SHIFT shifts the content of dobj by one place to the left or the right as long as the content of the first or last place of dobj is contained in mask.

If the data object dobj is a string, it is truncated when it is shifted to the left but not lengthened when it is shifted to the right. This means the content of mask can also be moved out of a string to the right.

In character string processing, mask is a character-like expression position. It is case-sensitive and any trailing blanks in mask are respected. If the content of the first or last place in dobj is not contained in mask, the content of text remains unchanged. In particular, nothing is shifted if mask is an empty string.

After the shift to the right, text contains the value "_____I know you" and keeps its length of 15 characters.

The following example removes first the trailing blank and then the leading blanks from a string. For strings without leading blanks, this sequence of statements can be used to remove trailing blanks.

BAL_S_LOG - Application Log: Log header data   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1857 Date: 20230322 Time: 104520     sap01-206 ( 40 ms )