2019-02-15——ABAP7决策

if

if<condition_1>.
<statements...>
endif.

if...else

if<condition_1>.
  <statement block 1>.
else.
  <statement block 2>.
endif.

嵌套if

if<condition_1>.
<statement block>.
if<condition_2>.
<statement block>.
else.
<statement block>.
endif.
else <statement block>.
endif.

case

case <field>.
when <abc>.
  <statement block>.
when <def>.
  <statement block>.
when <pqr>,
  <statement block>.
...
...
when <xyz>.
    <statement block>.
when others.
  <statement block>.
endcase.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容