1、合并字符串
REPORT YTEST001.
DATA: C1(2) TYPE C,
C2(2) TYPE C,
C3(2) TYPE C,
C4(2) TYPE C,
C5(20) TYPE C,
C9(2) TYPE C.
C1 = 'AB'.
C2 = 'CD'.
C3 = 'EF'.
C4 = 'GH'.
C9 = '+'.
CONCATENATE C1 C2 C3 C4 INTO C5.
WRITE C5.
CONCATENATE C1 C2 C3 C4 INTO C5 SEPARATED BY C9.
WRITE / C5.
输出效果