WRITE w WRITE f w 1 AT f
- Slides: 22
WRITE语句 w 基本语法 WRITE f w 附加 1. . AT f (position and length specification, before the field) 2. . option (formatting option) 3. . fmt (output format by field) 4. . AS CHECKBOX (output as checkbox) 5. . AS SYMBOL (output as symbol) 6. . AS ICON (output as icon) 7. . AS LINE (output as line)
输出数据的对齐方式 Type Output C, left-justified D, left-justified F, right-justified I, right-justified N, left-justified P, right-justified T, left-justified X, left-justified
实例:指定位置和长度输出 w WRITE AT f SAMPLE: DATA: WORD(16), VALUE '0123456789 ABCDEF', COL TYPE I VALUE 5, LEN TYPE I VALUE 10. WRITE AT / WORD. "new line WRITE AT 5 WORD. "column 5 WRITE AT (10) WORD. "output length 10 WRITE AT /5(10) WORD. "new line, column 5, length 10 WRITE AT COL WORD. "column = contents of COL WRITE AT (LEN) WORD. "output length = contents of LEN WRITE AT /COL(LEN) WORD. "new line, column = contents of COL "output length = contents of LEN
其它控制语句 w 参看WRITE. DOC或SAP Onlinehelp w ULINE w SKIP
数据库操作 w ABAP/4 Open SQL(BC 400 Chapter 8)
分析数据结构 w 可以通过在屏幕字段上按‘F 1’,然后查看其技 术信息获得字段信息 w 一般我们通过 具来进行辅助分析: SHDB SM 35 SCAT - Batch Input Transaction Recorder - Batch Input Monitoring - Computer Aided Test Tool
SHDB - Batch Input Transaction Recorder
SHDB - Batch Input Transaction Recorder
SHDB - Batch Input Transaction Recorder
SHDB - Batch Input Transaction Recorder
建立Batch Input程序 …… “创建Batch Input的数据 APPEND BDCDATA. …… “调用事务 CALL TRANSACTION USING MODE UPDATE MESSAGE INTO <transaction code> <BDCDATA table> <display mode> <update mode> <message table>.
建立Batch Input程序 w BDCDATA的结构 Field Name Type Length Description PROGRAM CHAR 8 Module pool DYNPRO NUMC 4 DYNAPRO number DYNBEGIN CHAR 1 Starting a DYNPRO FNAM CHAR 35 Field name FVAL CHAR 80 Field value
建立Batch Input程序 w 声明内部BDCDATA的内部表 * 存放Batch Input操作序列的内部表 -------------------* DATA: BEGIN OF BDCDATA OCCURS 0. INCLUDE STRUCTURE BDCDATA: END OF BDCDATA. u 清空内部表 *&-----------------------------------* *& Action : 清空Batch. Input操作序列的内部表BDCDATA *& Input : 无 * *& Output : 无 * *&-----------------------------------* FORM BDC_REFRESH BDCDATA. ENDFORM. *
建立Batch Input程序 w 设置屏幕 *&-----------------------------------* *& Action : 添加Program/Dyn. Pro操作到Batch. Input序列的内部表BDCDATA *& Input : PROGRAM - 程序名(长度为 8的字符串) * *& DYNPRO - 画面号 * *& Output : 无 * *&-----------------------------------* FORM BDC_DYNPRO USING PROGRAM DYNPRO. CLEAR BDCDATA-PROGRAM = PROGRAM. BDCDATA-DYNPRO = DYNPRO. BDCDATA-DYNBEGIN = 'X'. APPEND BDCDATA. ENDFORM. *
建立Batch Input程序 w 设置屏幕字段 *&-----------------------------------* *& Action : 添加屏幕数据操作到Batch. Input序列的内部表BDCDATA *& Input : FNAM - 屏幕项目名 * *& FVAL - 填写项目值 * *& Output : 无 * *&-----------------------------------* FORM BDC_FIELD USING FNAM FVAL. CLEAR BDCDATA-FNAM = FNAM. BDCDATA-FVAL = FVAL. APPEND BDCDATA. ENDFORM. *
建立Batch Input程序 “调用事务 CALL TRANSACTION <transaction code> USING <BDCDATA table> MODE <display mode> UPDATE <update mode> MESSAGE INTO <message table>. w Display mode A - Display all (Default) E - Display only error N - No Display w Update Mode S - Continue processing when update is completed ( synchronous ) A - Continue processing immediately
- Teknik mapping pada memori
- Rearrange the following words to form a comparison:
- Informal letter of advice
- In three minutes write three things you did yesterday
- How to write scotus frq
- Analytical text response essay structure
- Program project title
- Write the opposites in your notebook
- How to write the scientific name
- How to write component form of a vector
- Allegro write program
- How to write a film analysis
- Biography conclusion example
- How to write a complete ionic equation
- Hecto pencil
- Our solar system
- Standard form equation of a circle
- Read the statement carefully in your notebook write agree
- Write down the expression
- How to write a great research paper simon peyton jones
- Mango countable or uncountable
- Axes paragraph format
- A flow proof