OLD
DATA(lv_str1) = 'Hello'.
DATA(lv_str2) = 'World'.
DATA: lv_str TYPE string.
CONCATENATE 'MY First String' lv_str1 INTO lv_str2 SEPARATED BY space.
CONCATENATE lv_str lv_str2 INTO lv_str SEPARATED BY ' / '.
NEW
DATA(lv_str1) = 'Hello'.
DATA(lv_str2) = 'World'.
DATA(lv_str) = | My First String { lv_str1 } / { lv_str2 } |.
| | 存放字符串
{ } 存放变量
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17883.html