admin 管理员组文章数量: 1184232
2024年3月13日发(作者:linux安装java jdk)
ABAP的数据类型与JAVA和C都类似,主要有:
一、完全ABAP标准类型-Complete ABAP standard types
D Type for data, format: YYYYMMDD, length 8 (fixed)
类型D,日期类型,标准格式为:YYYYMMDD,长度为固定8位
T Type for time, format: HHMMSS, length 6(fixed)
类型T,时间类型,标准格式为:HHMMSS,长度为固定6位
I Type for integer(I), length 4(fixed)
类型I,整形数字,长度为固定4位
F Type for floating point number(F), length 8(fixed)
类型F,浮点数,长度为固定8位
STRING Type for dynamic length character string.
String类型,动态长度的字符串。
XSTRING Type for dynamic length byte sequence(HeXadecimal string)
16位字符串
二、非完全ABAP标准类型
C Type for character string(Charactor) for which the fixed length is to be
specified.
类型C,字符字串类型,长度需要提前定义。固定位数的字符组成的字符串。
N Type for numberical string(Numberical charactor) for which the fixed length
is to be specified.
类型N,用字符串存储的数字,长度需要提前定义。不可以用来计算,可以用来进
行多种可设定的显示。
X Type for byte sequence(HeXadecimal string) for which the fixed length is to
be specified.
十六进制变量
P Type for packed number(Packed number) for which the fixed length is to be
specified. ( In the definition of a packed number, the number of decimal points may
also be specified )
版权声明:本文标题:SAP ABAP 数据类型 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1710259433a564861.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论