技术小贴士

主要分为DB、OS和ERP三大块

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  12 随笔 :: 0 文章 :: 0 评论 :: 0 Trackbacks

1、 顺序
      
2、选择:IF和CASE
      --------------------
      (1) IF语法:
                IF  <condition1>.
                        <statement block>
                ELSEIF  <condition2>.
                       <statement block>
                ELSEIF  <condition3>.
                       <statement block>
                .....
                ELSE.
                      <statement block>
                ENDIF.

      (2) CASE语法:
                CASE <f>.
                          WHEN <F1>.
                                      <statement block>
                          WHEN <F2>.
                                      <statement block>
                          WHEN <F3>.
                                      <statement block>
                          WHEN ...
                          ......
                          WHEN OTHERS.
                                     <statement block>
                ENDCASE.

3、 循环:DO和WHILE
       ------------------------------------
       (1) 计次循环:
                    DO [<n>TIMES] [VARYING <f> FROM <F1> NEXT <F2>].
                          <statement block>
                    ENDDO.

       (2) 无限循环:
                   DO .
                        
<Statement Block>
                  
ENDDO. 

        (3) 条件循环:
                   WHILE <condition> [VARY <f> FROM <F1> NEXT <F2>].
                        <statement block>
                   ENDWHILE.

         *  终止循环:
             ------------------------------------
             ① 无条件终止循环:CONTINUE
             ② 有条件终止循环:CHECK
             ③ 完全终止循环:  EXIT

posted on 2005-11-20 22:27 行者 阅读(215) 评论(0)  编辑  收藏 所属分类: 42.SAP

只有注册用户登录后才能发表评论。


网站导航: