Ansicht
Dokumentation
ABAPSHIFT_DELETING - SHIFT DELETING
CPI1466 during Backup CPI1466 during BackupThis documentation is copyright by SAP AG.
SHIFT, deleting
... ${ ${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.
RFUMSV00 - Advance Return for Tax on Sales/Purchases General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 1857 Date: 20240424 Time: 125147 sap01-206 ( 40 ms )