¿Cómo reemplazar caracteres especiales en variables?

SAP Enterprise/ABAP/Variables

Se pueden reemplazar usando las siguientes instrucciones:

data: lv_trackid_num type xblnr, "char16,
          lv_trackid_num2 type xblnr, "char8,
          lv_trackid_abc type char3,
          lv_guionmedio type c value '-'.

trackid_r = trackid.
lv_trackid_abc = trackid.
lv_trackid_num = trackid .

* Caracteres especiales

replace all occurrences of regex '[A-Za-z]' in lv_trackid_num with space.
replace all occurrences of regex '[0-9]' in lv_trackid_abc with space.

replace all occurrences of '/' in trackid with space.
replace all occurrences of '-' in trackid with space.

replace all occurrences of '/' in lv_trackid_num with space.
replace all occurrences of '-' in lv_trackid_num with space.
replace all occurrences of '/' in lv_trackid_abc with space.
replace all occurrences of '-' in lv_trackid_abc with space.

condense lv_trackid_num.