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 )


本文标签: 类型 长度 提前 需要