结构,内表,工作区
*下面定义一个结构,这只是一个结构,不能给他值,它本身也存储不了任何数据;
TYPES:BEGIN OF INFO,
HKONT LIKE BSEG-HKONT, "总分类帐帐目
DMBTR LIKE BSEG-DMBTR, "金额
BELNR LIKE BSEG-BELNR, "会计凭证编号
* BUZEI LIKE BSEG-BUZEI,
MBLNR LIKE MSEG-MBLNR, "物料凭证
BWART LIKE MSEG-BWART, "移动类型
EBELN LIKE BSEG-EBELN, "采购凭证
EBELP LIKE BSEG-EBELP, "采购凭证行项目
MATNR LIKE BSEG-MATNR, "物料编号
MATKL LIKE MARA-MATKL, "物料组
BUDAT LIKE BKPF-BUDAT, "记帐日期
FLAG LIKE RCOSA-EXCL1, "选中标识,其值为X或为空
MARKD LIKE RCOSA-EXCL1,
END OF INFO.
*根据上面定义好的结构,定义一个内表,这个内表,是带有表头的,可以存储数据
DATA:T_INFO TYPE TABLE OF INFO WITH HEADER LINE .
DATA:LT_INFO TYPE INFO OCCURS 1 ,"内表,没有表头
LS_INFO LIKE LINE OF LT_INFO,"工作区
LI_INFO TYPE TABLE OF INFO ,"内表,没有表头
LX_INFO LIKE LT_INFO WITH HEADER LINE ."内表,带有表头
阅读(1454) | 评论(0) | 转发(0) |