ABAP Keyword Documentation → ABAP - Release-Specific Changes → Changes in Release 7.0 and its EhPs → Changes for Release 7.0
Character string processing for release 7.0
1. Search for regular expressions in character strings
2. Search for multiple found locations with FIND
3. Number of found locations in unsuccessful searches
4. Find and replace in internal tables
5. New additions for CONCATENATE
Other versions: 7.31 | 7.40 | 7.54
Modification 1
Search for regular expressions in character strings
As of release 7.0, it is possible to search for
regular expressions in the statements FIND
and REPLACE
. This replaces
the search for patterns with the statement SEARCH
.
Modification 2
Search for multiple found locations with FIND
As of release 7.0, the addition ALL OCCURRENCES
can be used in the statement
FIND
. The previous behavior is expressed
using the addition FIRST OCCURRENCE
. In addition, the statements FIND
and REPLACE
for pattern-based searching have been widely standardized.
Modification 3
Number of found locations in unsuccessful searches
As of release 7.0, the addition REPLACEMENT COUNT
of the statement
REPLACE
sets the operand rcnt
to 0, if no
replacement has been made. This is the same as the statement
FIND, in which mcnt
is also set to 0 by the addition MATCH
COUNT for unsuccessful searches. Before release 7.0, rcnt
retained its own previous value if no replacement was made.
Modification 4
Find and replace in internal tables
As of release 7.0, internal tables can be searched with the statement
FINDIN TABLE and modified using REPLACE
IN TABLE. This replaces the search in internal tables using the statement SEARCH
.
Modification 5
New additions for CONCATENATE
As of release 7.0, the addition LINES OF
in the statement
CONCATENATE
can be used to concatenate rows of an internal table.
The new addition RESPECTING BLANKS
enables closing blanks to be taken into
account in data objects of fixed length. This can also be used to assign text fields to strings when taking into account the closing blanks.