메뉴 건너뛰기

SAP 한국 커뮤니티



STRING_REPLACE

sapjoy 2014.09.22 02:28 조회 수 : 4228

문자열을 교체하는 함수



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.