DATA : LV_STR TYPE STRING,
LV_RST TYPE STRING.
LV_STR = '특정문자열이있는곳+(1404)2342354235'.
DATA: PATT VALUE `(`,
LT_PATT_TAB TYPE MATCH_RESULT_TAB,
LS_PATT_TAB TYPE MATCH_RESULT.
" ( 문자열이있는곳 검색
FIND ALL OCCURRENCES OF PATT IN LV_STR RESULTS LT_PATT_TAB.
READ TABLE LT_PATT_TAB INTO LS_PATT_TAB INDEX 1.
LV_STR = LV_STR+LS_PATT_TAB-OFFSET(6).
WRITE : LV_STR.
LV_RST TYPE STRING.
LV_STR = '특정문자열이있는곳+(1404)2342354235'.
DATA: PATT VALUE `(`,
LT_PATT_TAB TYPE MATCH_RESULT_TAB,
LS_PATT_TAB TYPE MATCH_RESULT.
" ( 문자열이있는곳 검색
FIND ALL OCCURRENCES OF PATT IN LV_STR RESULTS LT_PATT_TAB.
READ TABLE LT_PATT_TAB INTO LS_PATT_TAB INDEX 1.
LV_STR = LV_STR+LS_PATT_TAB-OFFSET(6).
WRITE : LV_STR.
first occurence of 일 경우에는
split lv_str at '(' into lv_tmp lv_str.
이렇게 해도 괜찮을 것 같아요.