ADT: ABAP Development Tools
ABAP 大小写不敏感
S/4 HANA 在数据库端处理了大部分数据,减小客户端的负载。
XString: 一般用于十六进制数据,常用于存放图片
ABAP基本数据类型:
I INT8 DECFLOAT16 DECFLOAT32
C P STRING XSTRING
N: number
D: date
T: time
数据类型:
定义单个变量:
predefined: complete: i, int, decfloat16, decfloat32, d, t, string, xstring
imcomplete: n, c, p(price), x (需要指定length, p还要指定精度)
defined: dictionary:
table-field,
structure-field,
data-element(描述:short, medium, long, header; 技术: type, length)
程序中定义的变量:
Types: t_cnt type c.
data: int_1 type t_cnt.
运用class type:
data: int2 type cl_s4d400_calculator=>ty_int (class中定义的一个变量类型)
定义多个变量,structure: type定义的几种方式
直接从dictionary中取类型: table-type, structure-type
在程序中定义: types: begin of …. end of…
从程序中取: class=>type
定义多条数据: internal table: type定义的几种方式
直接从dictionary中取类型: table-type
在程序中定义(p153):types t_table type standard table of d400_s_flight
with unique key carrid connid.
常用快捷键:
CTRL + Space 代码提示
CTRL + Shift + A 打开包查询,