SAP NEWS-780-STRINGS



Get Example source ABAP code based on a different SAP table
  



String Processing in ABAP Release 7.80
ITOC

ABAP_MODIFICATION_NN Support of Perl Compatible Regular Expressions

Besides the existing support for POSIX regular expressions (now obsolete), 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 following distinctions exist:
The new addition PCRE can be used instead of REGEX in the statements FIND and REPLACE.
The new argument pcre can be used instead of regex in built-in functions.
The new (factory) methods of the system classes CL_ABAP_REGEX and CL_ABAP_MATCHER.
PCRE regular expressions are more powerful and have better performance than POSIX regular expressions. For more information, see Regular Expressions.

ABAP_MODIFICATION_NN Verbatim Replacements

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

ABAP_MODIFICATION_NN New Catchable Exception CX_SY_STRING_SIZE_TOO_LARGE

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.

ABAP_MODIFICATION_NN Formatting Option CURRENCY for Decimal Floating Point Numbers

The addition CURRENCY of the WRITE TO and WRITE statements and the formatting option CURRENCY in string templates can now also be applied to decimal floating point numbers.