1. ABAP/4 Introduction
Introduction
ABAP/4(Advanced Business Application Programming)是 SAP/R3 目前唯一的系统发展工具,
属 4GL, 语法比较近似 Visual Basic 或 JAVA, 和传统 third-generation 语言, 如 C,PASCAL
有很大不同, 在程序模块(Program Structure Module)可分以
下三个部分:
1.Sequential coding within processing block
与一般语言语法近似, 如 IF,WHILE 等, 但并没有 GOTO 叙述
2.Reports
呼叫一个独立的事件(Depending Event), 读取 database 产生资料列表
3.Dialog
屏幕参数输入的对话框, 专门处理 database 读取或异动的 tranaction process
Basic Languange Overview
1.data element 宣告方式, 如数值, 字符资料变量宣告
2.操作数(operate)使用, 如 + - * /
3.Control element 使用, 如 Boolean 值
4.特殊资料格式, 如日期与时间
5.字符串字料处理 function, 如部分字符串的截取
6.子程序或自定函数的呼叫
7.SQL 语法使用
8.数据结构的使用, 如 process internal table 的宣告与使用
Reports Overview
1.Reports Task, 如报表屏幕预览或打印机打印的选择
2.Reports 模块是一个 Stand-along 程序,
3.database 读取方式, 如可定义 logical database(与磁盘的 physical storage 对映)
4.报表数据的计算与产生
5.报表的输出
Dialog Overview
1.专处理 database 的读取与异动, 如使用 SQL 指令
2.Dialog 不是一个 Stand-Along Progarm, 使用 transaction code 来产生屏幕对话框
3.由 flow logic 控制, flow logic 分成 PBO(Process Before Output)与 PAI(Process After Input)
第 1 页 共52页
评论0