- 1、本文档共18页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Mod_6 Control Statements Objectives The participants will be able to: Use the basic Control Flow Constructs that are available in the ABAP Editor Use the following statements in an ABAP Program IF, CASE, DO, WHILE, ON CHANGE OF, CHECK, EXIT, and CONTINUE Use the Logical Expressions that are available in the ABAP Editor Basic Flow Control in ABAP The IF Statement Logical Expressions Relational Operators Logical Operators Good Programming Practice withLogical Operators String Comparison Operators The CASE Statement The DO Loop The WHILE Loop Nested Loops and Control Structures The ON CHANGE OF Statement The CHECK Statement The EXIT Statement The CONTINUE Statement Summary The participants should be able to: Use the basic Control Flow Constructs that are available in the ABAP Editor Use the following statements in an ABAP Program IF, CASE, DO, WHILE, ON CHANGE OF, CHECK, EXIT, and CONTINUE Use the Logical Expressions that are available in the ABAP Editor BC170_2.06.* IF X = 5. WRITE:/ ‘The value of X is 5’. ELSEIF X = 6. WRITE:/ ‘The value of X is 6’. ELSE . WRITE:/ ‘X is neither 5 nor 6’. ENDIF. Logical Expressions use : RELATIONAL OPERATORS LOGICAL OPERATORS STRING COMPARISON OPERATORS Comparison Syntax Is Equal to =, EQ Is not equal to , , NE Greater than , GT Greater than or equal to =, = , GE Less than , LT Less than or equal to =, =, LE NOT AND OR The hierarchy of the logical operators is: NOT, AND, and then OR. (i.e., different from creating views) If not ( X = 0 ) or not ( Y = 1 and Z = X or X = 3 and ( Z = 5 ) Bad Comparison Syntax Contains only Contains any Contains string Contains pattern Contains not only Contains not any Contains no string Contains no pattern CO CA CS CP CN NA NS NP DATA: year(4) type c. …..some code to fill year variable with data….. CASE year. WHEN ‘1997’. FORMAT COLOR 6. WHEN ‘1998’. FORMAT COLOR 2. WHEN OTHERS. FORMAT COLOR 1. ENDCASE. DO. WRITE :/ ‘Hello world!’. ENDDO. J =4. DO J TIMES. WRIT
您可能关注的文档
- FICO_SSH_013 有采购订单的在建工程采购及资本化(有内部订单控制)_V1.12.doc
- FICO_SSH_014 有采购订单的在建工程采购及资本化(无内部订单控制)_V1.12.doc
- FICO_SSH_015 无采购订单的在建工程采购及资本化(有内部订单控制)_V1.2.doc
- FICO_SSH_016 无采购订单的在建工程采购及资本化(无内部订单控制)_V1.2.doc
- FI操作手册(1)SAP专业学习资料.doc
- fi各部门操作目标流程v1.0.doc
- fun_XXX油SAP实施项目销售打印_V1.1.doc
- GPC_FI-GL模块_培训最终用户教案_V3.ppt
- GPC_PM_EUT_设备主数据部分V3.2.ppt
- GPC_PP模块最终用户培训.ppt
最近下载
- 100以内加减法竖式练习题-两位数加减法竖式练习题A4直接打印.doc VIP
- 铁道供电技术职业生涯规划书.pptx VIP
- 会计职业生涯规划书5篇.pdf VIP
- 2024最新民事起诉状.doc VIP
- 3D工程图学(华中科大)中国大学MOOC慕课 章节测验 客观题答案.docx
- 血液透析患者护理查房课件.pdf VIP
- 初级消防设施操作员.docx VIP
- 北京市宣武区2024-2025学年六年级数学第一学期期末调研试题含解析.doc VIP
- 2024-2025学年英语三年级上册人教精通版(三起)(2024)教学设计(附教材目录).docx VIP
- 二年级语文上册-第七单元【教材解读】.pptx VIP
文档评论(0)