문자열을 교체하는 함수
STRING_REPLACE
CALL FUNCTION 'STRING_REPLACE'
EXPORTING
pattern = <l_pattern>
substitute = <l_substitute>
* MAX_REPLACES = 0
* IMPORTING
* NUMBER_OF_REPLACES =
CHANGING
text = p_text
EXCEPTIONS
wrong_string_length = 1
OTHERS = 2.
IF sy-subrc <> 0.
CONTINUE.
ENDIF.
EXPORTING
pattern = <l_pattern>
substitute = <l_substitute>
* MAX_REPLACES = 0
* IMPORTING
* NUMBER_OF_REPLACES =
CHANGING
text = p_text
EXCEPTIONS
wrong_string_length = 1
OTHERS = 2.
IF sy-subrc <> 0.
CONTINUE.
ENDIF.
감사합니다