SAP NEWS-70-REGEX



Get Example source ABAP code based on a different SAP table
  



Character String Processing in ABAP Release 7.0
ITOC

ABAP_MODIFICATION_NN Search for Regular Expressions in Character Strings

From ABAP_RELEASE 7.0, it is possible to search for regular expressions in the statements FIND and REPLACE. This replaces the search for patterns using the statement SEARCH.

ABAP_MODIFICATION_NN Search for Multiple Occurrences Using FIND

From ABAP_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 searches have been mostly standardized.

ABAP_MODIFICATION_NN Number of Occurrences in Unsuccessful Searches

From ABAP_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 ABAP_RELEASE 7.0, rcnt retained its own previous value if no replacement was made.

ABAP_MODIFICATION_NN Find and Replace in Internal Tables

From ABAP_RELEASE 7.0, internal tables can be searched using the statement FIND IN TABLE and modified using REPLACE IN TABLE. This replaces the search in internal tables using the statement SEARCH.

ABAP_MODIFICATION_NN New Additions in CONCATENATE

From ABAP_RELEASE 7.0, the addition LINES OF in the statement CONCATENATE can be used to concatenate lines of an internal table.
The new addition RESPECTING BLANKS enables trailing blanks to be respected data objects of fixed length. This can also be used to assign text fields to strings when respecting the trailing blanks.