Ansicht
Dokumentation

ABAPSHIFT_DELETING - SHIFT DELETING

ABAPSHIFT_DELETING - SHIFT DELETING

ABAP Short Reference   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

SHIFT, deleting

Short Reference



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

Effect

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.






TXBHW - Original Tax Base Amount in Local Currency   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1857 Date: 20240419 Time: 203957     sap01-206 ( 36 ms )