sapdev logo background
sapdev logo sapdev logo
Comments

SAP STRING FUNCTIONS OCC documentation, setup help and example usage



Return to SAP documentation index


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




STRING_FUNCTIONS_COMMON_PARAS
STRING_FUNCTIONS_OFF_LEN




comments powered by Disqus