ABAP 数据类型的区别和转换

来源:互联网 发布:罗斯文数据库 编辑:程序博客网 时间:2024/05/29 16:41

一、Char and String

 

In general STRING is a character array but the main difference between the character array and the string is that string has dynamic length while character array has static length.

 

i.e. suppose

data variable(10) type c,

variable1 type string.

 

Here variable is supposed to have a max length of 10 whereas variable1 can have any length (depends on the machine) .

 

So we can directly assign character varible to string and there is no need of the functional modules.

 

i.e variable1 = variable.

 

Incase if you want to merge more than one char variables into string , you can use 'CONCATENATE'for that. If you want to make string data into character varibles use 'SPLIT'.

原创粉丝点击