ABAP 字符串替换(保留后空格)
作者:互联网
DATA: lc_str1 TYPE char120 VALUE '123&123&321'. DATA: lc_str2 TYPE char120 VALUE '123&123&321'. DATA itab TYPE TABLE OF string. SPLIT lc_str1 AT '&' INTO TABLE itab. CONCATENATE LINES OF itab INTO lc_str1 SEPARATED BY ' and '. WRITE lc_str1. REPLACE ALL OCCURRENCES OF '&' IN lc_str2 WITH ' and '. WRITE lc_str2.
标签:itab,lc,str2,str1,空格,ABAP,123,字符串,DATA 来源: https://www.cnblogs.com/dy-debug/p/16538988.html