문자열을 교체하는 함수
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.
Leave a Reply
댓글을 달기 위해서는 로그인해야합니다.
2 Comments
감사합니다
감사 합니다.