DATA S1 TYPE char20. data s2 type char30 . data s3 type char50 . s1 = '1113434 ' . s2 = '67890-'. s3 = s1 && S2. WRITE: S3. " 结果:111343467890-CONCATENATE
REPORT ZWYB_0007. DATA S1 TYPE CHAR20. DATA S2 TYPE CHAR30 . DATA S3 TYPE CHAR50 . DATA S4 TYPE CHAR50 . DATA SEP(1) VALUE ' ' . S1 = '1113434 ' . S2 = '67890-'. * S3 = S1 && S2. * concatenate S1 S2 INTO S4 RESPECTING BLANKS . CONCATENATE S1 S2 INTO S4 SEPARATED BY SEP.. * WRITE: S3. WRITE: S4. 结果:1113434 67890-