标签:not 遍历 读取 sel 一个 type nbsp 数据 end
*Deal Data with Internal Table
*从表scarr里面读取信息
*用scarr定义一个结构
DATA wa_scarr TYPE scarr.
*定义内表
DATA it_scarr TYPE TABLE OF scarr.
*选择数据
SELECT *
INTO CORRESPONDING FIELDS OF TABLE it_scarr
FROM scarr.
*检查数据
IF sy-subrc = 0.
*遍历内表
LOOP AT it_scarr INTO wa_scarr.
WRITE: / wa_scarr-carrid,wa_scarr-carrname,wa_scarr-currcode.
ENDLOOP.
ELSE.
*输出
WRITE: ‘Data Not Found!‘.
ENDIF.
标签:not 遍历 读取 sel 一个 type nbsp 数据 end
原文地址:http://www.cnblogs.com/zxiu/p/7426892.html