~~~~~~~~~~~~~~~~【Lesson 1:Defining Elementary Data Objects】~~~~~~~~~~~~~~~~
1.Complete ABAP Standard Data Types
1)定长的,不需要指定长度。
2.Incomplete ABAP Standard Data Types
1)非定长的,需要指定长度,不指定时有默认长度。
3.声明局部类型
4.Dictionary中的全局数据类型
1)Elementary Type:Data Element。
2)Structure Type:Structure。
3)Type for Internal Tables:Table Type。
5.定义Data对象
6.定义基本Data对象示例
7.字符和常量(固定Data对象)
1)固定:定义时被赋值,运行时值不会改变。
2)有Label的——字符
· 数字字符。
· 文本字符。
3)无Label的——常量
8.局部VS全局数据类型
1)局部:只是技术上的属性。
2)全局:是技术和语义上的属性。
~~~~~~~~~~~~~~~~~【Lesson 2:Using Basic ABAP Statements】~~~~~~~~~~~~~~~~~
1.赋值
2.计算
3.条件分支
4.循环
5.System Fields
6.使用基本ABAP语句示例
REPORT bc400_dos_compute.
PARAMETERS:
pa_int1 TYPE i,
pa_op TYPE c LENGTH 1,
pa_int2 TYPE i.
DATA gv_result TYPE p LENGTH 16 DECIMALS 2.
IF ( pa_op = '+' OR
pa_op = '-' OR
pa_op = '*' OR
pa_op = '/' AND pa_int2 <> 0 ).
CASE pa_op.
WHEN '+'.
gv_result = pa_int1 + pa_int2.
WHEN '-'.
gv_result = pa_int1 - pa_int2.
WhEN '*'.
gv_result = pa_int1 * pa_int2.
WHEN '/'.
gv_result = pa_int1 / pa_int2.
ENDCASE.
WRITE:'Result'(res),gv_result.
ELSEIF pa_op = '/' AND pa_int2 = 0.
WRITE 'No division by zero!'(dbz).
ELSE.
WRITE 'Invalid operator!'(iop).
ENDIF.
7.会话消息
1)Message语句中number、type、class是必要的。
~~~~~~~~~~~~~~~~【Lesson 3:Working with the ABAP Debugger】~~~~~~~~~~~~~~~~
1.debugging模式切换
1)在命令域输入“/h”,可切换到debugging模式。
2)右击程序,Execute->Debugging.
2.SAP NW 7.0 ABAP Debugger特性
1)Request-based debugging of HTTP and RFC requests。
2)Software-layer aware debugging (SLAD)。
3)Automated debugging-debugger scripting。
4)Memory consumption analysis。
5)Enhanced Web Dynpro tool。
6)Enhanced table tool。
7)Statement debugging。