SAP Script 编程指南
1 SAPscript Forms.................................................................................................................................................................3
1.1 SAPscript 的组成....................................................................................................................................................3
1.2 Forms: 组件和技术.................................................................................................................................................3
1.2.1 概念......................................................................................................................................................3
1.2.1.1 修改 SAP Forms................................................................................................................................3
1.2.1.2 Forms:概念.....................................................................................................................................4
1.2.1.3 Client 和语言版本:概念.................................................................................................................4
1.2.2 组件...............................................................................................................................................................4
1.2.2.1 Header Data.......................................................................................................................................4
1.2.2.2 Paragraph Formats and Attributes.....................................................................................................6
1.2.2.3 Character Formats and Attributes......................................................................................................8
1.2.2.4 Windows............................................................................................................................................8
1.2.2.5 Pages(页面).....................................................................................................................................10
1.2.2.6 Pages window(页面窗口)...............................................................................................................11
1.2.2.7 Text Elements (文本元素)...............................................................................................................12
1.2.3 技术.............................................................................................................................................................15
1.2.3.1 在 Form 中包含图形.......................................................................................................................15
1.2.3.2 在 FORM 中包含公司 logo............................................................................................................16
1.2.3.3 在 form 中打印条形码....................................................................................................................24
1.2.3.4 Using Boxes, Lines, and Shading....................................................................................................27
2.SAPscript Control Commands..........................................................................................................................................30
2.1 Control Commands 语法.......................................................................................................................................30
2.2 Control Commands 种类.......................................................................................................................................30
2.2.1 显示分页:NEW-PAGE............................................................................................................................30
2.2.2 限制分页:PROTECT..............................................................................................................................31
2.2.3 下一个 main window 命令:NEW-WINDOW.........................................................................................31
2.2.4 给文本 symbol 分配值:DEFINE............................................................................................................31
2.2.5 格式化日期字段:SET DATE MASK.....................................................................................................32
2.2.6 格式化 Time 字段:SET TIME MASK....................................................................................................33
2.2.7 设置与国家相关的格式:SET COUNTRY.............................................................................................33
2.2.8 设置 symbol 位:SET SIGN.....................................................................................................................34
2.2.9 Initializing Numbered Paragraphs:RESET..............................................................................................34
2.2.10 包含其他文本:INCLUDE.....................................................................................................................35
2.2.11 改变样式:STYLE..................................................................................................................................35
2.2.12 格式化地址:ADDRESS........................................................................................................................36
2.2.13 在 main window 中设置 Header Text:TOP...........................................................................................37
2.2.14 在 main window 中设置 Footer Text:BOTTOM...................................................................................37
2.2.15 条件文本:IF...........................................................................................................................................37
2.2.16 条件文本:CASE....................................................................................................................................38
2.2.17 调用 ABAP 子程序:PERFORM...........................................................................................................38
2.2.18 合计:SUMMING...................................................................................................................................40
3.SAPscript Symbols............................................................................................................................................................40
3.1Syntax of Symbols..................................................................................................................................................40
3.2System Symbols......................................................................................................................................................41
1/56