Ansicht
Dokumentation

ABENSTRING_FUNCTIONS_OCC - STRING FUNCTIONS OCC

ABENSTRING_FUNCTIONS_OCC - STRING FUNCTIONS OCC

ABAP Short Reference   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

- occ

... ( ... occ = occ ...  ) ...

Effect

In string functions where searches are performed, 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, 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. If replace is used, the value 0 replaces all occurrences.

Note

The sign of occ also affects the default values of off and len.

The result of the following function calls is UX and XU.






CL_GUI_FRONTEND_SERVICES - Frontend Services   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.

Length: 1558 Date: 20240416 Time: 193259     sap01-206 ( 27 ms )