Topic: a lesson for each day

ERP俱乐部

第 1 页 总共 1 页 [共有 2 条记录]


Posted by mara on 2005-01-04 04:25 下午

REPORT demo_flow_control_if .

DATA: text1(30) TYPE c VALUE 'This is the first text',
      text2(30) TYPE c VALUE 'This is the second text',
      text3(30) TYPE c VALUE 'This is the third text',
      string(5) TYPE c VALUE 'eco'.

IF text1 CS string.
  WRITE / 'Condition 1 is fulfilled'.
ELSEIF text2 CS string.
  WRITE / 'Condition 2 is fulfilled'.
ELSEIF text3 CS string.
  WRITE / 'Condition 3 is fulfilled'.
ELSE.
  WRITE / 'No condition is fulfilled'.
ENDIF.


这是一个IF结构的简单例子


Posted by fangzai33 on 2005-01-04 06:19 下午
Goods. IF clause,and CS operating sign.