메뉴 건너뛰기

SAP 한국 커뮤니티

" " 와 ' ' 의 차이점 ( SPACE )

sapjoy 2007.04.04 09:24 조회 수 : 5725 추천:54

What is the difference between "'" and "`" in character strings?


The single quote character(') in character strings do not preserve white spaces at the end whereas the "`" character preserves white spaces as it is.


Eg.:


DATA v_char(32) TYPE c.
v_char = 'This is a'.
CONCATENATE v_char 'text   ' INTO v_char SEPARATED BY space.
*" v_char would be "This is a text"
CONCATENATE v_char `text   ` INTO v_char SEPARATED BY space.
*" v_char would be "This is a text   "