ARTICLE
occ - Occurrence
Syntax
... ( ... occ = occ ... ) ...
Effect
In string functions that are being searched, the parameter occ
specifies the occurrence of a match. occ is a
numeric expression position
of type i .
If occ is positive, the occurrences are counted from the left; if
occ is negative, the they are counted from the right. The values
1, 2, .... indicate the first, second, ... occurrences. The values -1,
-2, .... indicate the last, last but one, ... occurrences.
The default value of occ is 1. Except in the case of the
replacement function replace , the
value 0 raises an exception from the class CX_SY_STRG_PAR_VAL .
Note
The sign of occ also modifies the default values of
off and
len .
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved