结束例程

结束例程一般是对数据经过转换后的一些处理,比如数据拆分,合并,或者到最后不需要的数据的删除等。

REFRESH  RESULT_PACKAGE.
DATA: WA_RESULT TYPE _TY_S_TG_1.
LOOP AT ITAB INTO WA_ITAB.
  WA_TG-/BIC/ZSM_OFF = WA_ITAB-ORG_ID.
*****1月
  WA_TG-CALMONTH2 = '01'.
  WA_TG-/BIC/ZSM_BPQTY = WA_ITAB-M1 .
  APPEND WA_TG TO ITAB_TG.
****2月
  WA_TG-CALMONTH2 = '02'.
  WA_TG-/BIC/ZSM_BPQTY = WA_ITAB-M2.
  APPEND WA_TG TO ITAB_TG.
****3月
  WA_TG-CALMONTH2 = '03'.
  WA_TG-/BIC/ZSM_BPQTY = WA_ITAB-M3.
  APPEND WA_TG TO ITAB_TG.
 ENDLOOP.

LOOP AT ITAB_TG INTO WA_TG.
  MOVE-CORRESPONDING WA_TG TO WA_RESULT.
  APPEND  WA_RESULT TO RESULT_PACKAGE.
ENDLOOP.

 

你可能感兴趣的:(结束例程)