1. ABAP/4 Introduction

user warning: Unknown column 'u.signature_format' in 'field list' query: SELECT c.cid as cid, c.pid, c.nid, c.subject, c.comment, c.format, c.timestamp, c.name, c.mail, c.homepage, u.uid, u.name AS registered_name, u.signature, u.signature_format, u.picture, u.data, c.thread, c.status FROM comments c INNER JOIN users u ON c.uid = u.uid WHERE c.nid = 19 AND c.status = 0 ORDER BY c.thread DESC LIMIT 0, 50 in /home/unsoluti/public_html/modules/comment/comment.module on line 992.

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)