ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.5x →  News for ABAP Release 7.55 → 
Mail Feedback

String Processing in ABAP Release 7.55


1. Support of Perl Compatible Regular Expressions

2. Verbatim Replacements

3. New Catchable Exception CX_SY_STRING_SIZE_TOO_LARGE

4. Exception CX_SY_STRING_SIZE_TOO_LARGE in Transformations

5. Formatting Option CURRENCY for Decimal Floating Point Numbers



Modification 1  

Support of Perl Compatible Regular Expressions

Besides the existing support of POSIX regular expressions, ABAP supports now also PCRE regular expressions that are processed by the PCRE2 Library implemented in the ABAP Kernel. PCRE regular expressions can be used in the same way as POSIX regular expressions. The distinction is made:

PCRE regular expressions are more powerful and have better performance than POSIX regular expressions. For more information, see Regular Expressions.



Modification 2  

Verbatim Replacements

The new addition VERBATIM of the REPLACE statement causes all characters of the replacement string to be taken literally. With that addition, special characters for regular expression replacement patterns have no special meaning.



Modification 3  

New Catchable Exception CX_SY_STRING_SIZE_TOO_LARGE

See Exception CX_SY_STRING_SIZE_TOO_LARGE in Transformations.



Modification 4  

Exception CX_SY_STRING_SIZE_TOO_LARGE in Transformations

The exception that occurs when an operation with a string exceeds its maximum size is now connected to the exception class CX_SY_STRING_SIZE_TOO_LARGE and can be handled. Previously, it always resulted in runtime error STRING_SIZE_TOO_LARGE.

This exception can also be handled for the statement CALL TRANSFORMATION if some conditions are met.



Modification 5  

Formatting Option CURRENCY for Decimal Floating Point Numbers

The

can now also be applied to decimal floating point numbers.