多层循环中的continue只是跳过continue所在那一层循环满足条件的那条数据.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
data: lv_count type i value 0. select * into table @data(lt_t001) from t001. select * into table @data(lt_t156) from t156. *多层循环中的continue只是跳过continue所在那一层循环满足条件的那条数据. loop at lt_t001 assigning field-symbol(<fs>). while lv_count < 10. write : / <fs>-bukrs. lv_count = lv_count + 1. if lv_count = 3. continue. else. write : ' / ', lv_count. endif. endwhile. endloop. |
本文作者: GavinDong
版权属于: GavinDong博客
文章链接: https://gavindong.com/3010.html
如果使用过程中遇到问题,可 **点击此处** 交流沟通。
版权所有,转载时必须以链接形式注明作者和原始出处及本声明。