ABAP 数据类型的区别和转换
一、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'.
總結
以上是生活随笔為你收集整理的ABAP 数据类型的区别和转换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ABAP小写金额转大写
- 下一篇: 资产上线导入