*&---------------------------------------------------------------------*
*& Report YN_CHAR_TEST01
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT YN_CHAR_TEST01.
DATA LV_CHAR01(15) .
DATA LV_CHAR02(15) .
DATA LV_CHAR03(15) .
DATA LV_CHAR04(15) .
DATA LV_CHAR05(50).
LV_CHAR01 = '2019' .
LV_CHAR02 = '09' .
LV_CHAR03 = '20' .
CONCATENATE LV_CHAR01 LV_CHAR02 LV_CHAR03 INTO LV_CHAR05.
WRITE LV_CHAR05.
CONCATENATE LV_CHAR01 LV_CHAR02 LV_CHAR03 INTO LV_CHAR05 SEPARATED BY '.'.
WRITE / LV_CHAR05.
*-----------------------------------------------------------------------
LV_CHAR01 = 'Hello' .
LV_CHAR02 = 'World' .
LV_CHAR05 = LV_CHAR01 && LV_CHAR02 .
WRITE / LV_CHAR05.
*-----------------------------------------------------------------------
LV_CHAR01 = 'Break' .
LV_CHAR02 = 'these' .
LV_CHAR03 = 'and' .
LV_CHAR04 = 'on' .
LV_CHAR05 = |{ LV_CHAR01 } down { LV_CHAR02 } walls { LV_CHAR03 } come { LV_CHAR04 } in. |.
WRITE / LV_CHAR05.
ABAP 字符串连接的三种常用方法
最新推荐文章于 2024-01-23 23:20:29 发布