SAP STRING FUNCTION FIND ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_STRINGFUNC - count, find, and match
The example demonstrates the string functions count, find, and match.

ABAP_SOURCE_CODE
DEMO CL_DEMO_FIND_AND_MATCH

ABAP_DESCRIPTION
In the text field text, all occurrences are found using count and find that match a regular expression. When a search is successful, the substring found is read and displayed using the function match.
Instead of using the function count, it is also possible to use an unlimited DO loop that is exited using EXIT if the result of find has the value -1.