DO循环中处理

Posted on 2023-05-26 11:37  Chris的博客  阅读(2)  评论(0编辑  收藏  举报
 DATA:LV_INDEX TYPE SY-INDEX,
      LV_STR  TYPE TEXT10.


"遍历3组数据 DO 3 TIMES. LV_INDEX = LV_INDEX + 1. CASE LV_INDEX. WHEN 1. LV_STR = '01'. WHEN 2. LV_STR = '02'. WHEN 3. LV_STR = '03'. WHEN OTHERS. EXIT. ENDCASE.

  "执行
  PERFORM DETAIL_DATA USING LV_STR. ENDDO.