Code: Alles auswählen.
METHOD replace_substring.
DATA: lr_matcher TYPE REF TO cl_abap_matcher,
v_cnt TYPE i.
TRY.
lr_matcher = cl_abap_matcher=>create( pattern = i_pattern text = i_strg ).
CATCH cx_sy_matcher .
ENDTRY.
TRY.
CALL METHOD lr_matcher->replace_all
EXPORTING
newtext = i_newpattern
RECEIVING
count = v_cnt.
CATCH cx_sy_matcher .
ENDTRY.
e_substrg = lr_matcher->text.
ENDMETHOD.
Code: Alles auswählen.
REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB IN i_strg WITH ';'.