FUNCTION zca_remove_escape.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(IV_HEX) TYPE XSTRING OPTIONAL
*" REFERENCE(IV_CHARS) TYPE CSEQUENCE OPTIONAL
*" CHANGING
*" REFERENCE(CV_DATA) TYPE CSEQUENCE
*"----------------------------------------------------------------------
DATA : lv_chars TYPE char100.
DATA : lv_string TYPE string.
IF iv_hex IS NOT INITIAL.
CALL FUNCTION 'HR_RU_CONVERT_HEX_TO_STRING'
EXPORTING
xstring = iv_hex
IMPORTING
cstring = lv_string.
lv_chars = lv_string.
ENDIF.
IF iv_chars IS NOT INITIAL.
lv_chars = iv_chars.
ENDIF.
IF lv_chars IS INITIAL.
EXIT.
ENDIF.
FIND lv_chars IN cv_data.
IF sy-subrc IS INITIAL.
REPLACE ALL OCCURRENCES OF lv_chars
IN cv_data
WITH space.
ENDIF.
ENDFUNCTION.