遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

ABAP-Note001

*&---------------------------------------------------------------------*
*& Report  ZTLXJ_112801
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  ZTLXJ_112801.
DATASUM type I,
      NUM1 Like SUM,
      NUM2 Like SUM.

SUM 0.
NUM1 100NUM2 200.

PERFORM ADD USING  NUM1 NUM2  CHANGING SUM.

WRITE/ NUM1NUM2SUM"SUM 由 0 变成 300

FORM ADD USING VALUE(NUM1value(NUM2CHANGING SUM.

SUM NUM1 + NUM2.
NUM1 600.
ENDFORM.

posted on 2012-11-28 08:12  遗忘海岸  阅读(163)  评论(0编辑  收藏  举报